Subversion Repositories SmartDukaan

Rev

Rev 30197 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30197 Rev 34178
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.time.LocalDateTime;
3
import java.time.LocalDateTime;
-
 
4
import java.util.Objects;
4
 
5
 
5
public class SaholicCISModel {
6
public class SaholicCISModel {
6
 
7
 
7
	private int itemId;
8
	private int itemId;
8
	private int warehouseId;
9
	private int warehouseId;
Line 17... Line 18...
17
	private String warehouseName;
18
	private String warehouseName;
18
	private Integer indent;
19
	private Integer indent;
19
	private Integer tertiary;
20
	private Integer tertiary;
20
	private Integer total;
21
	private Integer total;
21
	private Integer dlt;
22
	private Integer dlt;
-
 
23
	private Integer dlt15;
22
	private Integer d10to20;;
24
	private Integer d10to20;;
23
	private Integer d20to30;
25
	private Integer d20to30;
24
	private Integer d30to45;
26
	private Integer d30to45;
25
	private Integer d45to60;
27
	private Integer d45to60;
26
	private Integer dgt60;
28
	private Integer dgt60;
27
 
29
 
28
	public SaholicCISModel(int itemId, int warehouseId, String brand, String modelName, String categoryName,
30
	public SaholicCISModel(int itemId, int warehouseId, String brand, String modelName, String categoryName,
29
			String modelNumber, String color, Float dealerPrice, LocalDateTime updatedOn, String stateName,
31
			String modelNumber, String color, Float dealerPrice, LocalDateTime updatedOn, String stateName,
30
			String warehouseName, Integer indent, Integer tertiary, Integer total, Integer dlt, Integer d10to20,
32
						   String warehouseName, Integer indent, Integer tertiary, Integer total, Integer dlt, Integer dlt15, Integer d10to20,
31
			Integer d20to30, Integer d30to45, Integer d45to60, Integer dgt60) {
33
			Integer d20to30, Integer d30to45, Integer d45to60, Integer dgt60) {
32
		super();
34
		super();
33
		this.itemId = itemId;
35
		this.itemId = itemId;
34
		this.warehouseId = warehouseId;
36
		this.warehouseId = warehouseId;
35
		this.brand = brand;
37
		this.brand = brand;
Line 43... Line 45...
43
		this.warehouseName = warehouseName;
45
		this.warehouseName = warehouseName;
44
		this.indent = indent;
46
		this.indent = indent;
45
		this.tertiary = tertiary;
47
		this.tertiary = tertiary;
46
		this.total = total;
48
		this.total = total;
47
		this.dlt = dlt;
49
		this.dlt = dlt;
-
 
50
		this.dlt15 = dlt15;
48
		this.d10to20 = d10to20;
51
		this.d10to20 = d10to20;
49
		this.d20to30 = d20to30;
52
		this.d20to30 = d20to30;
50
		this.d30to45 = d30to45;
53
		this.d30to45 = d30to45;
51
		this.d45to60 = d45to60;
54
		this.d45to60 = d45to60;
52
		this.dgt60 = dgt60;
55
		this.dgt60 = dgt60;
Line 170... Line 173...
170
 
173
 
171
	public void setDlt(Integer dlt) {
174
	public void setDlt(Integer dlt) {
172
		this.dlt = dlt;
175
		this.dlt = dlt;
173
	}
176
	}
174
 
177
 
-
 
178
	public Integer getDlt15() {
-
 
179
		return dlt15;
-
 
180
	}
-
 
181
 
-
 
182
	public void setDlt15(Integer dlt15) {
-
 
183
		this.dlt15 = dlt15;
-
 
184
	}
-
 
185
 
175
	public Integer getD10to20() {
186
	public Integer getD10to20() {
176
		return d10to20;
187
		return d10to20;
177
	}
188
	}
178
 
189
 
179
	public void setD10to20(Integer d10to20) {
190
	public void setD10to20(Integer d10to20) {
Line 211... Line 222...
211
	public void setDgt60(Integer dgt60) {
222
	public void setDgt60(Integer dgt60) {
212
		this.dgt60 = dgt60;
223
		this.dgt60 = dgt60;
213
	}
224
	}
214
 
225
 
215
	@Override
226
	@Override
216
	public int hashCode() {
227
	public boolean equals(Object o) {
217
		final int prime = 31;
-
 
218
		int result = 1;
228
		if (this == o) return true;
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
		if (o == null || getClass() != o.getClass()) return false;
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;
230
		SaholicCISModel that = (SaholicCISModel) o;
238
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
-
 
239
		return result;
231
		return itemId == that.itemId && warehouseId == that.warehouseId && Objects.equals(brand, that.brand) && Objects.equals(modelName, that.modelName) && Objects.equals(categoryName, that.categoryName) && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(color, that.color) && Objects.equals(dealerPrice, that.dealerPrice) && Objects.equals(updatedOn, that.updatedOn) && Objects.equals(stateName, that.stateName) && Objects.equals(warehouseName, that.warehouseName) && Objects.equals(indent, that.indent) && Objects.equals(tertiary, that.tertiary) && Objects.equals(total, that.total) && Objects.equals(dlt, that.dlt) && Objects.equals(dlt15, that.dlt15) && Objects.equals(d10to20, that.d10to20) && Objects.equals(d20to30, that.d20to30) && Objects.equals(d30to45, that.d30to45) && Objects.equals(d45to60, that.d45to60) && Objects.equals(dgt60, that.dgt60);
240
	}
232
	}
241
 
233
 
242
	@Override
234
	@Override
243
	public boolean equals(Object obj) {
235
	public int hashCode() {
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))
236
		return Objects.hash(itemId, warehouseId, brand, modelName, categoryName, modelNumber, color, dealerPrice, updatedOn, stateName, warehouseName, indent, tertiary, total, dlt, dlt15, d10to20, d20to30, d30to45, d45to60, dgt60);
344
			return false;
-
 
345
		return true;
-
 
346
	}
237
	}
347
 
238
 
348
	@Override
239
	@Override
349
	public String toString() {
240
	public String toString() {
-
 
241
		return "SaholicCISModel{" +
-
 
242
				"itemId=" + itemId +
350
		return "SaholicCISModel [itemId=" + itemId + ", warehouseId=" + warehouseId + ", brand=" + brand
243
				", warehouseId=" + warehouseId +
-
 
244
				", brand='" + brand + '\'' +
-
 
245
				", modelName='" + modelName + '\'' +
351
				+ ", modelName=" + modelName + ", categoryName=" + categoryName + ", modelNumber=" + modelNumber
246
				", categoryName='" + categoryName + '\'' +
-
 
247
				", modelNumber='" + modelNumber + '\'' +
-
 
248
				", color='" + color + '\'' +
352
				+ ", color=" + color + ", dealerPrice=" + dealerPrice + ", updatedOn=" + updatedOn + ", stateName="
249
				", dealerPrice=" + dealerPrice +
-
 
250
				", updatedOn=" + updatedOn +
-
 
251
				", stateName='" + stateName + '\'' +
353
				+ stateName + ", warehouseName=" + warehouseName + ", indent=" + indent + ", tertiary=" + tertiary
252
				", warehouseName='" + warehouseName + '\'' +
-
 
253
				", indent=" + indent +
-
 
254
				", tertiary=" + tertiary +
-
 
255
				", total=" + total +
-
 
256
				", dlt=" + dlt +
-
 
257
				", dlt15=" + dlt15 +
-
 
258
				", d10to20=" + d10to20 +
354
				+ ", total=" + total + ", dlt=" + dlt + ", d10to20=" + d10to20 + ", d20to30=" + d20to30 + ", d30to45="
259
				", d20to30=" + d20to30 +
-
 
260
				", d30to45=" + d30to45 +
355
				+ d30to45 + ", d45to60=" + d45to60 + ", dgt60=" + dgt60 + "]";
261
				", d45to60=" + d45to60 +
-
 
262
				", dgt60=" + dgt60 +
-
 
263
				'}';
356
	}
264
	}
357
 
265
 
358
}
266
}