Subversion Repositories SmartDukaan

Rev

Rev 28665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28665 Rev 28949
Line 30... Line 30...
30
	private String tinNumber;
30
	private String tinNumber;
31
	private String pincode;
31
	private String pincode;
32
	private String vendorString;
32
	private String vendorString;
33
	private String gstin;
33
	private String gstin;
34
 
34
 
35
	private int logisticsLocation;
35
	private Integer logisticsLocation;
36
	private Integer billingType;
36
	private Integer billingType;
37
	@Enumerated(EnumType.STRING)
37
	@Enumerated(EnumType.STRING)
38
	private WarehouseType warehouseType;
38
	private WarehouseType warehouseType;
39
 
39
 
40
	@Enumerated(EnumType.STRING)
40
	@Enumerated(EnumType.STRING)
Line 128... Line 128...
128
 
128
 
129
	public void setGstin(String gstin) {
129
	public void setGstin(String gstin) {
130
		this.gstin = gstin;
130
		this.gstin = gstin;
131
	}
131
	}
132
 
132
 
133
	public int getLogisticsLocation() {
133
	public Integer getLogisticsLocation() {
134
		return logisticsLocation;
134
		return logisticsLocation;
135
	}
135
	}
136
 
136
 
137
	public void setLogisticsLocation(int logisticsLocation) {
137
	public void setLogisticsLocation(Integer logisticsLocation) {
138
		this.logisticsLocation = logisticsLocation;
138
		this.logisticsLocation = logisticsLocation;
139
	}
139
	}
140
 
140
 
141
	public Integer getBillingType() {
141
	public Integer getBillingType() {
142
		return billingType;
142
		return billingType;
Line 227... Line 227...
227
				+ warehouseType + ", inventoryType=" + inventoryType + ", vendor=" + vendor + ", shippingWarehouseId="
227
				+ warehouseType + ", inventoryType=" + inventoryType + ", vendor=" + vendor + ", shippingWarehouseId="
228
				+ shippingWarehouseId + ", billingWarehouseId=" + billingWarehouseId + ", isAvailabilityMonitored="
228
				+ shippingWarehouseId + ", billingWarehouseId=" + billingWarehouseId + ", isAvailabilityMonitored="
229
				+ isAvailabilityMonitored + ", transferDelayInHours=" + transferDelayInHours + ", stateId=" + stateId
229
				+ isAvailabilityMonitored + ", transferDelayInHours=" + transferDelayInHours + ", stateId=" + stateId
230
				+ ", source=" + source + "]";
230
				+ ", source=" + source + "]";
231
	}
231
	}
-
 
232
	
-
 
233
 
-
 
234
	@Override
-
 
235
	public int hashCode() {
-
 
236
		final int prime = 31;
-
 
237
		int result = 1;
-
 
238
		result = prime * result + ((addedOn == null) ? 0 : addedOn.hashCode());
-
 
239
		result = prime * result + ((billingType == null) ? 0 : billingType.hashCode());
-
 
240
		result = prime * result + billingWarehouseId;
-
 
241
		result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
-
 
242
		result = prime * result + ((gstin == null) ? 0 : gstin.hashCode());
-
 
243
		result = prime * result + id;
-
 
244
		result = prime * result + ((inventoryType == null) ? 0 : inventoryType.hashCode());
-
 
245
		result = prime * result + isAvailabilityMonitored;
-
 
246
		result = prime * result + ((lastCheckedOn == null) ? 0 : lastCheckedOn.hashCode());
-
 
247
		result = prime * result + ((location == null) ? 0 : location.hashCode());
-
 
248
		result = prime * result + ((logisticsLocation == null) ? 0 : logisticsLocation.hashCode());
-
 
249
		result = prime * result + ((pincode == null) ? 0 : pincode.hashCode());
-
 
250
		result = prime * result + shippingWarehouseId;
-
 
251
		result = prime * result + ((source == null) ? 0 : source.hashCode());
-
 
252
		result = prime * result + stateId;
-
 
253
		result = prime * result + status;
-
 
254
		result = prime * result + ((tinNumber == null) ? 0 : tinNumber.hashCode());
-
 
255
		result = prime * result + (int) (transferDelayInHours ^ (transferDelayInHours >>> 32));
-
 
256
		result = prime * result + vendor;
-
 
257
		result = prime * result + ((vendorString == null) ? 0 : vendorString.hashCode());
-
 
258
		result = prime * result + ((warehouseType == null) ? 0 : warehouseType.hashCode());
-
 
259
		return result;
-
 
260
	}
-
 
261
 
-
 
262
	@Override
-
 
263
	public boolean equals(Object obj) {
-
 
264
		if (this == obj)
-
 
265
			return true;
-
 
266
		if (obj == null)
-
 
267
			return false;
-
 
268
		if (getClass() != obj.getClass())
-
 
269
			return false;
-
 
270
		Warehouse other = (Warehouse) obj;
-
 
271
		if (addedOn == null) {
-
 
272
			if (other.addedOn != null)
-
 
273
				return false;
-
 
274
		} else if (!addedOn.equals(other.addedOn))
-
 
275
			return false;
-
 
276
		if (billingType == null) {
-
 
277
			if (other.billingType != null)
-
 
278
				return false;
-
 
279
		} else if (!billingType.equals(other.billingType))
-
 
280
			return false;
-
 
281
		if (billingWarehouseId != other.billingWarehouseId)
-
 
282
			return false;
-
 
283
		if (displayName == null) {
-
 
284
			if (other.displayName != null)
-
 
285
				return false;
-
 
286
		} else if (!displayName.equals(other.displayName))
-
 
287
			return false;
-
 
288
		if (gstin == null) {
-
 
289
			if (other.gstin != null)
-
 
290
				return false;
-
 
291
		} else if (!gstin.equals(other.gstin))
-
 
292
			return false;
-
 
293
		if (id != other.id)
-
 
294
			return false;
-
 
295
		if (inventoryType != other.inventoryType)
-
 
296
			return false;
-
 
297
		if (isAvailabilityMonitored != other.isAvailabilityMonitored)
-
 
298
			return false;
-
 
299
		if (lastCheckedOn == null) {
-
 
300
			if (other.lastCheckedOn != null)
-
 
301
				return false;
-
 
302
		} else if (!lastCheckedOn.equals(other.lastCheckedOn))
-
 
303
			return false;
-
 
304
		if (location == null) {
-
 
305
			if (other.location != null)
-
 
306
				return false;
-
 
307
		} else if (!location.equals(other.location))
-
 
308
			return false;
-
 
309
		if (logisticsLocation == null) {
-
 
310
			if (other.logisticsLocation != null)
-
 
311
				return false;
-
 
312
		} else if (!logisticsLocation.equals(other.logisticsLocation))
-
 
313
			return false;
-
 
314
		if (pincode == null) {
-
 
315
			if (other.pincode != null)
-
 
316
				return false;
-
 
317
		} else if (!pincode.equals(other.pincode))
-
 
318
			return false;
-
 
319
		if (shippingWarehouseId != other.shippingWarehouseId)
-
 
320
			return false;
-
 
321
		if (source == null) {
-
 
322
			if (other.source != null)
-
 
323
				return false;
-
 
324
		} else if (!source.equals(other.source))
-
 
325
			return false;
-
 
326
		if (stateId != other.stateId)
-
 
327
			return false;
-
 
328
		if (status != other.status)
-
 
329
			return false;
-
 
330
		if (tinNumber == null) {
-
 
331
			if (other.tinNumber != null)
-
 
332
				return false;
-
 
333
		} else if (!tinNumber.equals(other.tinNumber))
-
 
334
			return false;
-
 
335
		if (transferDelayInHours != other.transferDelayInHours)
-
 
336
			return false;
-
 
337
		if (vendor != other.vendor)
-
 
338
			return false;
-
 
339
		if (vendorString == null) {
-
 
340
			if (other.vendorString != null)
-
 
341
				return false;
-
 
342
		} else if (!vendorString.equals(other.vendorString))
-
 
343
			return false;
-
 
344
		if (warehouseType != other.warehouseType)
-
 
345
			return false;
-
 
346
		return true;
-
 
347
	}
232
 
348
 
233
	public Warehouse() {
349
	public Warehouse() {
234
		super();
350
		super();
235
		// TODO Auto-generated constructor stub
351
		// TODO Auto-generated constructor stub
236
	}
352
	}