Subversion Repositories SmartDukaan

Rev

Rev 27539 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class WarehouseWiseStockModel {
        private int warehouseId;
        private long stockQty;
        private long stockValue;
        private long pendingIndent;
        private long tertiary;

        public WarehouseWiseStockModel(int warehouseId, long stockQty, long stockValue, long pendingIndent, long tertiary) {
                super();
                this.warehouseId = warehouseId;
                this.stockQty = stockQty;
                this.stockValue = stockValue;
                this.pendingIndent = pendingIndent;
                this.tertiary = tertiary;
        }

        public WarehouseWiseStockModel() {
                super();
                // TODO Auto-generated constructor stub
        }

        public int getWarehouseId() {
                return warehouseId;
        }

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

        public long getStockQty() {
                return stockQty;
        }

        public void setStockQty(long stockQty) {
                this.stockQty = stockQty;
        }

        public long getStockValue() {
                return stockValue;
        }

        public void setStockValue(long stockValue) {
                this.stockValue = stockValue;
        }

        public long getPendingIndent() {
                return pendingIndent;
        }

        public void setPendingIndent(long pendingIndent) {
                this.pendingIndent = pendingIndent;
        }

        public long getTertiary() {
                return tertiary;
        }

        public void setTertiary(long tertiary) {
                this.tertiary = tertiary;
        }

        @Override
        public String toString() {
                return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", stockQty=" + stockQty + ", stockValue="
                                + stockValue + ", pendingIndent=" + pendingIndent + ", tertiary=" + tertiary + "]";
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + (int) (pendingIndent ^ (pendingIndent >>> 32));
                result = prime * result + (int) (stockQty ^ (stockQty >>> 32));
                result = prime * result + (int) (stockValue ^ (stockValue >>> 32));
                result = prime * result + (int) (tertiary ^ (tertiary >>> 32));
                result = prime * result + warehouseId;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;
                if (pendingIndent != other.pendingIndent)
                        return false;
                if (stockQty != other.stockQty)
                        return false;
                if (stockValue != other.stockValue)
                        return false;
                if (tertiary != other.tertiary)
                        return false;
                if (warehouseId != other.warehouseId)
                        return false;
                return true;
        }

}