Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
30197 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
public class SaholicCISModel {
6
 
7
	private int itemId;
8
	private int warehouseId;
9
	private String brand;
10
	private String modelName;
11
	private String categoryName;
12
	private String modelNumber;
13
	private String color;
14
	private Float dealerPrice;
15
	private LocalDateTime updatedOn;
16
	private String stateName;
17
	private String warehouseName;
18
	private Integer indent;
19
	private Integer tertiary;
20
	private Integer total;
21
	private Integer dlt;
22
	private Integer d10to20;;
23
	private Integer d20to30;
24
	private Integer d30to45;
25
	private Integer d45to60;
26
	private Integer dgt60;
27
 
28
	public SaholicCISModel(int itemId, int warehouseId, String brand, String modelName, String categoryName,
29
			String modelNumber, String color, Float dealerPrice, LocalDateTime updatedOn, String stateName,
30
			String warehouseName, Integer indent, Integer tertiary, Integer total, Integer dlt, Integer d10to20,
31
			Integer d20to30, Integer d30to45, Integer d45to60, Integer dgt60) {
32
		super();
33
		this.itemId = itemId;
34
		this.warehouseId = warehouseId;
35
		this.brand = brand;
36
		this.modelName = modelName;
37
		this.categoryName = categoryName;
38
		this.modelNumber = modelNumber;
39
		this.color = color;
40
		this.dealerPrice = dealerPrice;
41
		this.updatedOn = updatedOn;
42
		this.stateName = stateName;
43
		this.warehouseName = warehouseName;
44
		this.indent = indent;
45
		this.tertiary = tertiary;
46
		this.total = total;
47
		this.dlt = dlt;
48
		this.d10to20 = d10to20;
49
		this.d20to30 = d20to30;
50
		this.d30to45 = d30to45;
51
		this.d45to60 = d45to60;
52
		this.dgt60 = dgt60;
53
	}
54
 
55
	public int getItemId() {
56
		return itemId;
57
	}
58
 
59
	public void setItemId(int itemId) {
60
		this.itemId = itemId;
61
	}
62
 
63
	public int getWarehouseId() {
64
		return warehouseId;
65
	}
66
 
67
	public void setWarehouseId(int warehouseId) {
68
		this.warehouseId = warehouseId;
69
	}
70
 
71
	public String getBrand() {
72
		return brand;
73
	}
74
 
75
	public void setBrand(String brand) {
76
		this.brand = brand;
77
	}
78
 
79
	public String getModelName() {
80
		return modelName;
81
	}
82
 
83
	public void setModelName(String modelName) {
84
		this.modelName = modelName;
85
	}
86
 
87
	public String getCategoryName() {
88
		return categoryName;
89
	}
90
 
91
	public void setCategoryName(String categoryName) {
92
		this.categoryName = categoryName;
93
	}
94
 
95
	public String getModelNumber() {
96
		return modelNumber;
97
	}
98
 
99
	public void setModelNumber(String modelNumber) {
100
		this.modelNumber = modelNumber;
101
	}
102
 
103
	public String getColor() {
104
		return color;
105
	}
106
 
107
	public void setColor(String color) {
108
		this.color = color;
109
	}
110
 
111
	public Float getDealerPrice() {
112
		return dealerPrice;
113
	}
114
 
115
	public void setDealerPrice(Float dealerPrice) {
116
		this.dealerPrice = dealerPrice;
117
	}
118
 
119
	public LocalDateTime getUpdatedOn() {
120
		return updatedOn;
121
	}
122
 
123
	public void setUpdatedOn(LocalDateTime updatedOn) {
124
		this.updatedOn = updatedOn;
125
	}
126
 
127
	public String getStateName() {
128
		return stateName;
129
	}
130
 
131
	public void setStateName(String stateName) {
132
		this.stateName = stateName;
133
	}
134
 
135
	public String getWarehouseName() {
136
		return warehouseName;
137
	}
138
 
139
	public void setWarehouseName(String warehouseName) {
140
		this.warehouseName = warehouseName;
141
	}
142
 
143
	public Integer getIndent() {
144
		return indent;
145
	}
146
 
147
	public void setIndent(Integer indent) {
148
		this.indent = indent;
149
	}
150
 
151
	public Integer getTertiary() {
152
		return tertiary;
153
	}
154
 
155
	public void setTertiary(Integer tertiary) {
156
		this.tertiary = tertiary;
157
	}
158
 
159
	public Integer getTotal() {
160
		return total;
161
	}
162
 
163
	public void setTotal(Integer total) {
164
		this.total = total;
165
	}
166
 
167
	public Integer getDlt() {
168
		return dlt;
169
	}
170
 
171
	public void setDlt(Integer dlt) {
172
		this.dlt = dlt;
173
	}
174
 
175
	public Integer getD10to20() {
176
		return d10to20;
177
	}
178
 
179
	public void setD10to20(Integer d10to20) {
180
		this.d10to20 = d10to20;
181
	}
182
 
183
	public Integer getD20to30() {
184
		return d20to30;
185
	}
186
 
187
	public void setD20to30(Integer d20to30) {
188
		this.d20to30 = d20to30;
189
	}
190
 
191
	public Integer getD30to45() {
192
		return d30to45;
193
	}
194
 
195
	public void setD30to45(Integer d30to45) {
196
		this.d30to45 = d30to45;
197
	}
198
 
199
	public Integer getD45to60() {
200
		return d45to60;
201
	}
202
 
203
	public void setD45to60(Integer d45to60) {
204
		this.d45to60 = d45to60;
205
	}
206
 
207
	public Integer getDgt60() {
208
		return dgt60;
209
	}
210
 
211
	public void setDgt60(Integer dgt60) {
212
		this.dgt60 = dgt60;
213
	}
214
 
215
	@Override
216
	public int hashCode() {
217
		final int prime = 31;
218
		int result = 1;
219
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
220
		result = prime * result + ((categoryName == null) ? 0 : categoryName.hashCode());
221
		result = prime * result + ((color == null) ? 0 : color.hashCode());
222
		result = prime * result + ((d10to20 == null) ? 0 : d10to20.hashCode());
223
		result = prime * result + ((d20to30 == null) ? 0 : d20to30.hashCode());
224
		result = prime * result + ((d30to45 == null) ? 0 : d30to45.hashCode());
225
		result = prime * result + ((d45to60 == null) ? 0 : d45to60.hashCode());
226
		result = prime * result + ((dealerPrice == null) ? 0 : dealerPrice.hashCode());
227
		result = prime * result + ((dgt60 == null) ? 0 : dgt60.hashCode());
228
		result = prime * result + ((dlt == null) ? 0 : dlt.hashCode());
229
		result = prime * result + ((indent == null) ? 0 : indent.hashCode());
230
		result = prime * result + itemId;
231
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
232
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
233
		result = prime * result + ((stateName == null) ? 0 : stateName.hashCode());
234
		result = prime * result + ((tertiary == null) ? 0 : tertiary.hashCode());
235
		result = prime * result + ((total == null) ? 0 : total.hashCode());
236
		result = prime * result + ((updatedOn == null) ? 0 : updatedOn.hashCode());
237
		result = prime * result + warehouseId;
238
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
239
		return result;
240
	}
241
 
242
	@Override
243
	public boolean equals(Object obj) {
244
		if (this == obj)
245
			return true;
246
		if (obj == null)
247
			return false;
248
		if (getClass() != obj.getClass())
249
			return false;
250
		SaholicCISModel other = (SaholicCISModel) obj;
251
		if (brand == null) {
252
			if (other.brand != null)
253
				return false;
254
		} else if (!brand.equals(other.brand))
255
			return false;
256
		if (categoryName == null) {
257
			if (other.categoryName != null)
258
				return false;
259
		} else if (!categoryName.equals(other.categoryName))
260
			return false;
261
		if (color == null) {
262
			if (other.color != null)
263
				return false;
264
		} else if (!color.equals(other.color))
265
			return false;
266
		if (d10to20 == null) {
267
			if (other.d10to20 != null)
268
				return false;
269
		} else if (!d10to20.equals(other.d10to20))
270
			return false;
271
		if (d20to30 == null) {
272
			if (other.d20to30 != null)
273
				return false;
274
		} else if (!d20to30.equals(other.d20to30))
275
			return false;
276
		if (d30to45 == null) {
277
			if (other.d30to45 != null)
278
				return false;
279
		} else if (!d30to45.equals(other.d30to45))
280
			return false;
281
		if (d45to60 == null) {
282
			if (other.d45to60 != null)
283
				return false;
284
		} else if (!d45to60.equals(other.d45to60))
285
			return false;
286
		if (dealerPrice == null) {
287
			if (other.dealerPrice != null)
288
				return false;
289
		} else if (!dealerPrice.equals(other.dealerPrice))
290
			return false;
291
		if (dgt60 == null) {
292
			if (other.dgt60 != null)
293
				return false;
294
		} else if (!dgt60.equals(other.dgt60))
295
			return false;
296
		if (dlt == null) {
297
			if (other.dlt != null)
298
				return false;
299
		} else if (!dlt.equals(other.dlt))
300
			return false;
301
		if (indent == null) {
302
			if (other.indent != null)
303
				return false;
304
		} else if (!indent.equals(other.indent))
305
			return false;
306
		if (itemId != other.itemId)
307
			return false;
308
		if (modelName == null) {
309
			if (other.modelName != null)
310
				return false;
311
		} else if (!modelName.equals(other.modelName))
312
			return false;
313
		if (modelNumber == null) {
314
			if (other.modelNumber != null)
315
				return false;
316
		} else if (!modelNumber.equals(other.modelNumber))
317
			return false;
318
		if (stateName == null) {
319
			if (other.stateName != null)
320
				return false;
321
		} else if (!stateName.equals(other.stateName))
322
			return false;
323
		if (tertiary == null) {
324
			if (other.tertiary != null)
325
				return false;
326
		} else if (!tertiary.equals(other.tertiary))
327
			return false;
328
		if (total == null) {
329
			if (other.total != null)
330
				return false;
331
		} else if (!total.equals(other.total))
332
			return false;
333
		if (updatedOn == null) {
334
			if (other.updatedOn != null)
335
				return false;
336
		} else if (!updatedOn.equals(other.updatedOn))
337
			return false;
338
		if (warehouseId != other.warehouseId)
339
			return false;
340
		if (warehouseName == null) {
341
			if (other.warehouseName != null)
342
				return false;
343
		} else if (!warehouseName.equals(other.warehouseName))
344
			return false;
345
		return true;
346
	}
347
 
348
	@Override
349
	public String toString() {
350
		return "SaholicCISModel [itemId=" + itemId + ", warehouseId=" + warehouseId + ", brand=" + brand
351
				+ ", modelName=" + modelName + ", categoryName=" + categoryName + ", modelNumber=" + modelNumber
352
				+ ", color=" + color + ", dealerPrice=" + dealerPrice + ", updatedOn=" + updatedOn + ", stateName="
353
				+ stateName + ", warehouseName=" + warehouseName + ", indent=" + indent + ", tertiary=" + tertiary
354
				+ ", total=" + total + ", dlt=" + dlt + ", d10to20=" + d10to20 + ", d20to30=" + d20to30 + ", d30to45="
355
				+ d30to45 + ", d45to60=" + d45to60 + ", dgt60=" + dgt60 + "]";
356
	}
357
 
358
}