Subversion Repositories SmartDukaan

Rev

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

Rev 31682 Rev 31730
Line 15... Line 15...
15
 * 
15
 * 
16
 * @author ashikali
16
 * @author ashikali
17
 *
17
 *
18
 */
18
 */
19
@Entity
19
@Entity
20
@Table(name = "fofo.fofo_store", schema = "fofo")
20
@Table(name = "fofo.fofo_store")
21
 
21
 
22
@NamedQueries({
22
@NamedQueries({
23
 
23
 
24
		@NamedQuery(name = "FofoStore.selectAllDtrUserIds", query = "select ua.userId from FofoStore fs join UserAccount ua on fs.id=ua.accountKey "
24
		@NamedQuery(name = "FofoStore.selectAllDtrUserIds", query = "select ua.userId from FofoStore fs join UserAccount ua on fs.id=ua.accountKey "
25
				+ "where ua.type='saholic' and fs.internal=false and fs.active=true"),
25
				+ "where ua.type='saholic' and fs.internal=false and fs.active=true"),
Line 141... Line 141...
141
 
141
 
142
	@Column(name = "counter_size")
142
	@Column(name = "counter_size")
143
	@Enumerated(EnumType.STRING)
143
	@Enumerated(EnumType.STRING)
144
	private CounterSize counterSize = CounterSize.TEN_LAC;
144
	private CounterSize counterSize = CounterSize.TEN_LAC;
145
 
145
 
-
 
146
	@Column(name = "counter_potential")
-
 
147
	private float counterPotential;
-
 
148
 
146
	@Column(name = "warehouse_id")
149
	@Column(name = "warehouse_id")
147
	private int warehouseId;
150
	private int warehouseId;
148
 
151
 
149
	@Column(name = "minimum_investment")
152
	@Column(name = "minimum_investment")
150
	private float minimumInvestment;
153
	private float minimumInvestment;
Line 183... Line 186...
183
 
186
 
184
	public ActivationType getActivationType() {
187
	public ActivationType getActivationType() {
185
		return activationType;
188
		return activationType;
186
	}
189
	}
187
 
190
 
-
 
191
	public float getCounterPotential() {
-
 
192
		return counterPotential;
-
 
193
	}
-
 
194
 
-
 
195
	public void setCounterPotential(float counterPotential) {
-
 
196
		this.counterPotential = counterPotential;
-
 
197
	}
-
 
198
 
188
	public void setActivationType(ActivationType activationType) {
199
	public void setActivationType(ActivationType activationType) {
189
		this.activationType = activationType;
200
		this.activationType = activationType;
190
	}
201
	}
191
 
202
 
192
	public LocalDateTime getBagsLastCredited() {
203
	public LocalDateTime getBagsLastCredited() {
Line 339... Line 350...
339
		result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
350
		result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
340
		result = prime * result + (active ? 1231 : 1237);
351
		result = prime * result + (active ? 1231 : 1237);
341
		result = prime * result + ((activeTimeStamp == null) ? 0 : activeTimeStamp.hashCode());
352
		result = prime * result + ((activeTimeStamp == null) ? 0 : activeTimeStamp.hashCode());
342
		result = prime * result + ((bagsLastCredited == null) ? 0 : bagsLastCredited.hashCode());
353
		result = prime * result + ((bagsLastCredited == null) ? 0 : bagsLastCredited.hashCode());
343
		result = prime * result + ((code == null) ? 0 : code.hashCode());
354
		result = prime * result + ((code == null) ? 0 : code.hashCode());
-
 
355
		result = prime * result + Float.floatToIntBits(counterPotential);
344
		result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
356
		result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
345
		result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
357
		result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
346
		result = prime * result + graceCount;
358
		result = prime * result + graceCount;
347
		result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
359
		result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
348
		result = prime * result + id;
360
		result = prime * result + id;
Line 383... Line 395...
383
		if (code == null) {
395
		if (code == null) {
384
			if (other.code != null)
396
			if (other.code != null)
385
				return false;
397
				return false;
386
		} else if (!code.equals(other.code))
398
		} else if (!code.equals(other.code))
387
			return false;
399
			return false;
-
 
400
		if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential))
-
 
401
			return false;
388
		if (counterSize != other.counterSize)
402
		if (counterSize != other.counterSize)
389
			return false;
403
			return false;
390
		if (fofoType != other.fofoType)
404
		if (fofoType != other.fofoType)
391
			return false;
405
			return false;
392
		if (graceCount != other.graceCount)
406
		if (graceCount != other.graceCount)
Line 430... Line 444...
430
	}
444
	}
431
 
445
 
432
	@Override
446
	@Override
433
	public String toString() {
447
	public String toString() {
434
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
448
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
435
				+ ", counterSize=" + counterSize + ", warehouseId=" + warehouseId + ", minimumInvestment="
449
				+ ", counterSize=" + counterSize + ", counterPotential=" + counterPotential + ", warehouseId="
436
				+ minimumInvestment + ", graceDate=" + graceDate + ", investmentOk=" + investmentOk + ", active="
450
				+ warehouseId + ", minimumInvestment=" + minimumInvestment + ", graceDate=" + graceDate
437
				+ active + ", pan=" + pan + ", userAddress=" + userAddress + ", internal=" + internal
451
				+ ", investmentOk=" + investmentOk + ", active=" + active + ", pan=" + pan + ", userAddress="
438
				+ ", bagsLastCredited=" + bagsLastCredited + ", fofoType=" + fofoType + ", activationType="
452
				+ userAddress + ", internal=" + internal + ", bagsLastCredited=" + bagsLastCredited + ", fofoType="
439
				+ activationType + ", activeTimeStamp=" + activeTimeStamp + ", graceCount=" + graceCount + "]";
453
				+ fofoType + ", activationType=" + activationType + ", activeTimeStamp=" + activeTimeStamp
-
 
454
				+ ", graceCount=" + graceCount + "]";
440
	}
455
	}
441
 
456
 
442
}
457
}
443
458