Subversion Repositories SmartDukaan

Rev

Rev 30158 | 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 PartnerSecondaryModel {
        private int warehouseId;
        private int fofoId;
        private Long orderCount;
        private Double orderValue;

        public PartnerSecondaryModel(int warehouseId, int fofoId, Long orderCount, Double orderValue) {
                this.warehouseId = warehouseId;
                this.fofoId = fofoId;
                this.orderCount = orderCount;
                this.orderValue = orderValue;
        }

        public int getWarehouseId() {
                return warehouseId;
        }

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

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public Long getOrderCount() {
                return orderCount;
        }

        public void setOrderCount(Long orderCount) {
                this.orderCount = orderCount;
        }

        public Double getOrderValue() {
                return orderValue;
        }

        public void setOrderValue(Double orderValue) {
                this.orderValue = orderValue;
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                PartnerSecondaryModel that = (PartnerSecondaryModel) o;
                return warehouseId == that.warehouseId && fofoId == that.fofoId && Objects.equals(orderCount, that.orderCount) && Objects.equals(orderValue, that.orderValue);
        }

        @Override
        public int hashCode() {
                return Objects.hash(warehouseId, fofoId, orderCount, orderValue);
        }

        @Override
        public String toString() {
                return "PartnerSecondaryModel{" +
                                "warehouseId=" + warehouseId +
                                ", fofoId=" + fofoId +
                                ", orderCount=" + orderCount +
                                ", orderValue=" + orderValue +
                                '}';
        }
}