Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34163 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class HidAllocationModel {
6
    int fofoId;
7
    int catalogId;
8
    String modelNumber;
9
    String brand;
10
    int availableStock;
11
    int last2DaysSoldQtySum;
12
    int lastThirdDaySoldQty;
13
    int hidAllocation;
14
    int purchaseLimit;
15
 
16
    public HidAllocationModel(int fofoId, int catalogId, String modelNumber, String brand, int availableStock, int last2DaysSoldQtySum, int lastThirdDaySoldQty, int hidAllocation, int purchaseLimit) {
17
        this.fofoId = fofoId;
18
        this.catalogId = catalogId;
19
        this.modelNumber = modelNumber;
20
        this.brand = brand;
21
        this.availableStock = availableStock;
22
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
23
        this.lastThirdDaySoldQty = lastThirdDaySoldQty;
24
        this.hidAllocation = hidAllocation;
25
        this.purchaseLimit = purchaseLimit;
26
    }
27
 
28
    public int getFofoId() {
29
        return fofoId;
30
    }
31
 
32
    public void setFofoId(int fofoId) {
33
        this.fofoId = fofoId;
34
    }
35
 
36
    public int getCatalogId() {
37
        return catalogId;
38
    }
39
 
40
    public void setCatalogId(int catalogId) {
41
        this.catalogId = catalogId;
42
    }
43
 
44
    public String getModelNumber() {
45
        return modelNumber;
46
    }
47
 
48
    public void setModelNumber(String modelNumber) {
49
        this.modelNumber = modelNumber;
50
    }
51
 
52
    public String getBrand() {
53
        return brand;
54
    }
55
 
56
    public void setBrand(String brand) {
57
        this.brand = brand;
58
    }
59
 
60
    public int getAvailableStock() {
61
        return availableStock;
62
    }
63
 
64
    public void setAvailableStock(int availableStock) {
65
        this.availableStock = availableStock;
66
    }
67
 
68
    public int getLast2DaysSoldQtySum() {
69
        return last2DaysSoldQtySum;
70
    }
71
 
72
    public void setLast2DaysSoldQtySum(int last2DaysSoldQtySum) {
73
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
74
    }
75
 
76
    public int getLastThirdDaySoldQty() {
77
        return lastThirdDaySoldQty;
78
    }
79
 
80
    public void setLastThirdDaySoldQty(int lastThirdDaySoldQty) {
81
        this.lastThirdDaySoldQty = lastThirdDaySoldQty;
82
    }
83
 
84
    public int getHidAllocation() {
85
        return hidAllocation;
86
    }
87
 
88
    public void setHidAllocation(int hidAllocation) {
89
        this.hidAllocation = hidAllocation;
90
    }
91
 
92
    public int getPurchaseLimit() {
93
        return purchaseLimit;
94
    }
95
 
96
    public void setPurchaseLimit(int purchaseLimit) {
97
        this.purchaseLimit = purchaseLimit;
98
    }
99
 
100
    @Override
101
    public String toString() {
102
        return "HidAllocationModel{" +
103
                "fofoId=" + fofoId +
104
                ", catalogId=" + catalogId +
105
                ", modelNumber='" + modelNumber + '\'' +
106
                ", brand='" + brand + '\'' +
107
                ", availableStock=" + availableStock +
108
                ", last2DaysSoldQtySum=" + last2DaysSoldQtySum +
109
                ", lastThirdDaySoldQty=" + lastThirdDaySoldQty +
110
                ", hidAllocation=" + hidAllocation +
111
                ", purchaseLimit=" + purchaseLimit +
112
                '}';
113
    }
114
 
115
    @Override
116
    public boolean equals(Object o) {
117
        if (this == o) return true;
118
        if (o == null || getClass() != o.getClass()) return false;
119
        HidAllocationModel that = (HidAllocationModel) o;
120
        return fofoId == that.fofoId && catalogId == that.catalogId && availableStock == that.availableStock && last2DaysSoldQtySum == that.last2DaysSoldQtySum && lastThirdDaySoldQty == that.lastThirdDaySoldQty && hidAllocation == that.hidAllocation && purchaseLimit == that.purchaseLimit && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(brand, that.brand);
121
    }
122
 
123
    @Override
124
    public int hashCode() {
125
        return Objects.hash(fofoId, catalogId, modelNumber, brand, availableStock, last2DaysSoldQtySum, lastThirdDaySoldQty, hidAllocation, purchaseLimit);
126
    }
127
}