Subversion Repositories SmartDukaan

Rev

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

Rev 28709 Rev 28825
Line 13... Line 13...
13
import javax.persistence.NamedQuery;
13
import javax.persistence.NamedQuery;
14
import javax.persistence.Table;
14
import javax.persistence.Table;
15
import javax.persistence.Transient;
15
import javax.persistence.Transient;
16
 
16
 
17
import com.spice.profitmandi.common.enumuration.CounterSize;
17
import com.spice.profitmandi.common.enumuration.CounterSize;
-
 
18
import com.spice.profitmandi.common.enumuration.FofoType;
18
import com.spice.profitmandi.dao.entity.user.Address;
19
import com.spice.profitmandi.dao.entity.user.Address;
19
 
20
 
20
/**
21
/**
21
 * This class basically contains store code details
22
 * This class basically contains store code details
22
 * 
23
 * 
Line 168... Line 169...
168
	@Column(name = "internal")
169
	@Column(name = "internal")
169
	private boolean internal;
170
	private boolean internal;
170
 
171
 
171
	@Column(name = "bags_last_credited")
172
	@Column(name = "bags_last_credited")
172
	private LocalDateTime bagsLastCredited;
173
	private LocalDateTime bagsLastCredited;
-
 
174
 
-
 
175
	@Column(name = "fofo_type")
-
 
176
	@Enumerated(EnumType.STRING)
-
 
177
	private FofoType fofoType;
173
	
178
 
174
	@Column(name = "active_timestamp")
179
	@Column(name = "active_timestamp")
175
	private LocalDateTime activeTimeStamp;
180
	private LocalDateTime activeTimeStamp;
176
 
181
 
177
	public LocalDateTime getBagsLastCredited() {
182
	public LocalDateTime getBagsLastCredited() {
178
		return bagsLastCredited;
183
		return bagsLastCredited;
Line 290... Line 295...
290
	}
295
	}
291
 
296
 
292
	public void setUserAddress(Address userAddress) {
297
	public void setUserAddress(Address userAddress) {
293
		this.userAddress = userAddress;
298
		this.userAddress = userAddress;
294
	}
299
	}
295
	
-
 
296
	
-
 
297
 
300
 
298
	public LocalDateTime getActiveTimeStamp() {
301
	public LocalDateTime getActiveTimeStamp() {
299
		return activeTimeStamp;
302
		return activeTimeStamp;
300
	}
303
	}
301
 
304
 
302
	public void setActiveTimeStamp(LocalDateTime activeTimeStamp) {
305
	public void setActiveTimeStamp(LocalDateTime activeTimeStamp) {
303
		this.activeTimeStamp = activeTimeStamp;
306
		this.activeTimeStamp = activeTimeStamp;
304
	}
307
	}
305
 
308
 
-
 
309
	public FofoType getFofoType() {
-
 
310
		return fofoType;
-
 
311
	}
-
 
312
 
-
 
313
	public void setFofoType(FofoType fofoType) {
-
 
314
		this.fofoType = fofoType;
-
 
315
	}
-
 
316
 
306
	@Override
317
	@Override
307
	public int hashCode() {
318
	public int hashCode() {
308
		final int prime = 31;
319
		final int prime = 31;
309
		int result = 1;
320
		int result = 1;
310
		result = prime * result + (active ? 1231 : 1237);
321
		result = prime * result + (active ? 1231 : 1237);
-
 
322
		result = prime * result + ((activeTimeStamp == null) ? 0 : activeTimeStamp.hashCode());
-
 
323
		result = prime * result + ((bagsLastCredited == null) ? 0 : bagsLastCredited.hashCode());
311
		result = prime * result + ((code == null) ? 0 : code.hashCode());
324
		result = prime * result + ((code == null) ? 0 : code.hashCode());
312
		result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
325
		result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
-
 
326
		result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
313
		result = prime * result + graceCount;
327
		result = prime * result + graceCount;
314
		result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
328
		result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
315
		result = prime * result + id;
329
		result = prime * result + id;
316
		result = prime * result + (internal ? 1231 : 1237);
330
		result = prime * result + (internal ? 1231 : 1237);
317
		result = prime * result + (investmentOk ? 1231 : 1237);
331
		result = prime * result + (investmentOk ? 1231 : 1237);
Line 332... Line 346...
332
		if (getClass() != obj.getClass())
346
		if (getClass() != obj.getClass())
333
			return false;
347
			return false;
334
		FofoStore other = (FofoStore) obj;
348
		FofoStore other = (FofoStore) obj;
335
		if (active != other.active)
349
		if (active != other.active)
336
			return false;
350
			return false;
-
 
351
		if (activeTimeStamp == null) {
-
 
352
			if (other.activeTimeStamp != null)
-
 
353
				return false;
-
 
354
		} else if (!activeTimeStamp.equals(other.activeTimeStamp))
-
 
355
			return false;
-
 
356
		if (bagsLastCredited == null) {
-
 
357
			if (other.bagsLastCredited != null)
-
 
358
				return false;
-
 
359
		} else if (!bagsLastCredited.equals(other.bagsLastCredited))
-
 
360
			return false;
337
		if (code == null) {
361
		if (code == null) {
338
			if (other.code != null)
362
			if (other.code != null)
339
				return false;
363
				return false;
340
		} else if (!code.equals(other.code))
364
		} else if (!code.equals(other.code))
341
			return false;
365
			return false;
342
		if (counterSize != other.counterSize)
366
		if (counterSize != other.counterSize)
343
			return false;
367
			return false;
-
 
368
		if (fofoType != other.fofoType)
-
 
369
			return false;
344
		if (graceCount != other.graceCount)
370
		if (graceCount != other.graceCount)
345
			return false;
371
			return false;
346
		if (graceDate == null) {
372
		if (graceDate == null) {
347
			if (other.graceDate != null)
373
			if (other.graceDate != null)
348
				return false;
374
				return false;
Line 380... Line 406...
380
	public String toString() {
406
	public String toString() {
381
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
407
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
382
				+ ", counterSize=" + counterSize + ", warehouseId=" + warehouseId + ", minimumInvestment="
408
				+ ", counterSize=" + counterSize + ", warehouseId=" + warehouseId + ", minimumInvestment="
383
				+ minimumInvestment + ", graceDate=" + graceDate + ", investmentOk=" + investmentOk + ", active="
409
				+ minimumInvestment + ", graceDate=" + graceDate + ", investmentOk=" + investmentOk + ", active="
384
				+ active + ", userAddress=" + userAddress + ", internal=" + internal + ", bagsLastCredited="
410
				+ active + ", userAddress=" + userAddress + ", internal=" + internal + ", bagsLastCredited="
385
				+ bagsLastCredited + ", activeTimeStamp=" + activeTimeStamp + ", graceCount=" + graceCount + "]";
411
				+ bagsLastCredited + ", fofoType=" + fofoType + ", activeTimeStamp=" + activeTimeStamp + ", graceCount="
-
 
412
				+ graceCount + "]";
386
	}
413
	}
387
 
414
 
388
	
-
 
389
 
-
 
390
}
415
}
391
416