Subversion Repositories SmartDukaan

Rev

Rev 34163 | Details | Compare with Previous | 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 hidAllocation;
13
    int purchaseLimit;
34256 ranu 14
    int currentSnapshotStock;
15
    int orderedStock;
34163 ranu 16
 
34256 ranu 17
    public HidAllocationModel(int fofoId, int catalogId, String modelNumber, String brand, int availableStock, int last2DaysSoldQtySum, int hidAllocation) {
34163 ranu 18
        this.fofoId = fofoId;
19
        this.catalogId = catalogId;
20
        this.modelNumber = modelNumber;
21
        this.brand = brand;
22
        this.availableStock = availableStock;
23
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
24
        this.hidAllocation = hidAllocation;
25
    }
26
 
27
    public int getFofoId() {
28
        return fofoId;
29
    }
30
 
31
    public void setFofoId(int fofoId) {
32
        this.fofoId = fofoId;
33
    }
34
 
35
    public int getCatalogId() {
36
        return catalogId;
37
    }
38
 
39
    public void setCatalogId(int catalogId) {
40
        this.catalogId = catalogId;
41
    }
42
 
43
    public String getModelNumber() {
44
        return modelNumber;
45
    }
46
 
47
    public void setModelNumber(String modelNumber) {
48
        this.modelNumber = modelNumber;
49
    }
50
 
51
    public String getBrand() {
52
        return brand;
53
    }
54
 
55
    public void setBrand(String brand) {
56
        this.brand = brand;
57
    }
58
 
59
    public int getAvailableStock() {
60
        return availableStock;
61
    }
62
 
63
    public void setAvailableStock(int availableStock) {
64
        this.availableStock = availableStock;
65
    }
66
 
67
    public int getLast2DaysSoldQtySum() {
68
        return last2DaysSoldQtySum;
69
    }
70
 
71
    public void setLast2DaysSoldQtySum(int last2DaysSoldQtySum) {
72
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
73
    }
74
 
75
    public int getHidAllocation() {
76
        return hidAllocation;
77
    }
78
 
79
    public void setHidAllocation(int hidAllocation) {
80
        this.hidAllocation = hidAllocation;
81
    }
82
 
83
    public int getPurchaseLimit() {
84
        return purchaseLimit;
85
    }
86
 
87
    public void setPurchaseLimit(int purchaseLimit) {
88
        this.purchaseLimit = purchaseLimit;
89
    }
90
 
34256 ranu 91
    public int getCurrentSnapshotStock() {
92
        return currentSnapshotStock;
93
    }
94
 
95
    public void setCurrentSnapshotStock(int currentSnapshotStock) {
96
        this.currentSnapshotStock = currentSnapshotStock;
97
    }
98
 
99
    public int getOrderedStock() {
100
        return orderedStock;
101
    }
102
 
103
    public void setOrderedStock(int orderedStock) {
104
        this.orderedStock = orderedStock;
105
    }
106
 
34163 ranu 107
    @Override
34256 ranu 108
    public boolean equals(Object o) {
109
        if (this == o) return true;
110
        if (o == null || getClass() != o.getClass()) return false;
111
        HidAllocationModel that = (HidAllocationModel) o;
112
        return fofoId == that.fofoId && catalogId == that.catalogId && availableStock == that.availableStock && last2DaysSoldQtySum == that.last2DaysSoldQtySum && hidAllocation == that.hidAllocation && purchaseLimit == that.purchaseLimit && currentSnapshotStock == that.currentSnapshotStock && orderedStock == that.orderedStock && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(brand, that.brand);
113
    }
114
 
115
    @Override
116
    public int hashCode() {
117
        return Objects.hash(fofoId, catalogId, modelNumber, brand, availableStock, last2DaysSoldQtySum, hidAllocation, purchaseLimit, currentSnapshotStock, orderedStock);
118
    }
119
 
120
    @Override
34163 ranu 121
    public String toString() {
122
        return "HidAllocationModel{" +
123
                "fofoId=" + fofoId +
124
                ", catalogId=" + catalogId +
125
                ", modelNumber='" + modelNumber + '\'' +
126
                ", brand='" + brand + '\'' +
127
                ", availableStock=" + availableStock +
128
                ", last2DaysSoldQtySum=" + last2DaysSoldQtySum +
129
                ", hidAllocation=" + hidAllocation +
130
                ", purchaseLimit=" + purchaseLimit +
34256 ranu 131
                ", currentSnapshotStock=" + currentSnapshotStock +
132
                ", orderedStock=" + orderedStock +
34163 ranu 133
                '}';
134
    }
135
}