Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class BrandRegionPOModel {
        private int warehouseId;
        private String brand;
        private long todayPOValue;
        private long todayPOBilledValue;
        private long todayBilledValue;

        public BrandRegionPOModel() {
        }

        public BrandRegionPOModel(int warehouseId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
                this.warehouseId = warehouseId;
                this.brand = brand;
                this.todayPOValue = todayPOValue;
                this.todayPOBilledValue = todayPOBilledValue;
                this.todayBilledValue = todayBilledValue;
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                BrandRegionPOModel that = (BrandRegionPOModel) o;
                return warehouseId == that.warehouseId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
        }

        @Override
        public int hashCode() {
                return Objects.hash(warehouseId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
        }

        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;
        }

        public long getTodayPOValue() {
                return todayPOValue;
        }

        public void setTodayPOValue(long todayPOValue) {
                this.todayPOValue = todayPOValue;
        }

        public long getTodayPOBilledValue() {
                return todayPOBilledValue;
        }

        public void setTodayPOBilledValue(long todayPOBilledValue) {
                this.todayPOBilledValue = todayPOBilledValue;
        }

        public long getTodayBilledValue() {
                return todayBilledValue;
        }

        public void setTodayBilledValue(long todayBilledValue) {
                this.todayBilledValue = todayBilledValue;
        }
}