Subversion Repositories SmartDukaan

Rev

Rev 27211 | Rev 30201 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.inventory;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SaholicCIS {

        @JsonProperty("Itemid")
        private int itemId;
        @JsonProperty("Warehouseid")
        private int warehouseId;
        @JsonProperty("Warehousefrom")
        private int warehouseFrom;

        @JsonProperty("Category")
        public int category;

        public SaholicCIS(int itemId, int warehouseId, int warehouseFrom, int category, int availability, int reserved,
                        int netavailability) {
                super();
                this.itemId = itemId;
                this.warehouseId = warehouseId;
                this.warehouseFrom = warehouseFrom;
                this.category = category;
                this.availability = availability;
                this.reserved = reserved;
                Netavailability = netavailability;

        }

        public int getCategory() {
                return category;
        }

        public void setCategory(int category) {
                this.category = category;
        }

        public int getWarehouseFrom() {
                return warehouseFrom;
        }

        public void setWarehouseFrom(int warehouseFrom) {
                this.warehouseFrom = warehouseFrom;
        }

        public int getPopendingQty() {
                return popendingQty;
        }

        public void setPopendingQty(int popendingQty) {
                this.popendingQty = popendingQty;
        }

        @JsonProperty("Availability")
        private int availability;
        @JsonProperty("Reserved")
        private int reserved;
        @JsonProperty("Netavailability")
        private int Netavailability;

        private int popendingQty;

        private String warehouseName;

        public String getWarehouseName() {
                return warehouseName;
        }

        public void setWarehouseName(String warehouseName) {
                this.warehouseName = warehouseName;
        }

        @Override
        public String toString() {
                return "SaholicCIS [itemId=" + itemId + ", warehouseId=" + warehouseId + ", warehouseFrom=" + warehouseFrom
                                + ", category=" + category + ", availability=" + availability + ", reserved=" + reserved
                                + ", Netavailability=" + Netavailability + ", popendingQty=" + popendingQty + ", warehouseName="
                                + warehouseName + "]";
        }

        public int getItemId() {
                return itemId;
        }

        public void setItemId(int itemId) {
                this.itemId = itemId;
        }

        public int getWarehouseId() {
                return warehouseId;
        }

        public void setWarehouseId(int warehouseId) {
                this.warehouseId = warehouseId;
        }

        public int getNetavailability() {
                return Netavailability;
        }

        public void setNetavailability(int netavailability) {
                Netavailability = netavailability;
        }

        public int getAvailability() {
                return availability;
        }

        public void setAvailability(int availability) {
                this.availability = availability;
        }

        public int getReserved() {
                return reserved;
        }

        public void setReserved(int reserved) {
                this.reserved = reserved;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + Netavailability;
                result = prime * result + availability;
                result = prime * result + category;
                result = prime * result + itemId;
                result = prime * result + popendingQty;
                result = prime * result + reserved;
                result = prime * result + warehouseFrom;
                result = prime * result + warehouseId;
                result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                SaholicCIS other = (SaholicCIS) obj;
                if (Netavailability != other.Netavailability)
                        return false;
                if (availability != other.availability)
                        return false;
                if (category != other.category)
                        return false;
                if (itemId != other.itemId)
                        return false;
                if (popendingQty != other.popendingQty)
                        return false;
                if (reserved != other.reserved)
                        return false;
                if (warehouseFrom != other.warehouseFrom)
                        return false;
                if (warehouseId != other.warehouseId)
                        return false;
                if (warehouseName == null) {
                        if (other.warehouseName != null)
                                return false;
                } else if (!warehouseName.equals(other.warehouseName))
                        return false;
                return true;
        }

}