Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

public class BrandRegionModel {
        private int warehouseId;
        private String brand;
        private int total;
        private int qty;

        public int getQty() {
                return qty;
        }

        public void setQty(int qty) {
                this.qty = qty;
        }

        public int getTotal() {
                return total;
        }

        public void setTotal(int total) {
                this.total = total;
        }

        public BrandRegionModel(int warehouseId, String brand) {
                super();
                this.warehouseId = warehouseId;
                this.brand = brand;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                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;
                BrandRegionModel other = (BrandRegionModel) obj;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (warehouseId != other.warehouseId)
                        return false;
                return true;
        }

        public int getWarehouseId() {
                return warehouseId;
        }

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

        public String getBrand() {
                return brand;
        }

        public void setBrand(String brand) {
                this.brand = brand;
        }

        @Override
        public String toString() {
                return "BrandRegionModel [warehouseId=" + warehouseId + ", brand=" + brand + ", total=" + total + ", qty=" + qty
                                + "]";
        }

}