Subversion Repositories SmartDukaan

Rev

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

Rev 24880 Rev 25726
Line 119... Line 119...
119
	
119
	
120
	@Convert(converter = LocalDateTimeAttributeConverter.class)
120
	@Convert(converter = LocalDateTimeAttributeConverter.class)
121
	@Column(name="invoice_creation_timestamp")
121
	@Column(name="invoice_creation_timestamp")
122
	private LocalDateTime invoiceCreationTimestamp = LocalDateTime.now();
122
	private LocalDateTime invoiceCreationTimestamp = LocalDateTime.now();
123
	
123
	
-
 
124
	
-
 
125
	@Transient 
-
 
126
	private String color;
-
 
127
	
-
 
128
	@Transient 
-
 
129
	private String coveragePeriod;
-
 
130
	
-
 
131
	@Transient 
-
 
132
	private int brandId;
-
 
133
	
-
 
134
	
-
 
135
	
-
 
136
 
-
 
137
	public int getBrandId() {
-
 
138
		return brandId;
-
 
139
	}
-
 
140
 
-
 
141
	public void setBrandId(int brandId) {
-
 
142
		this.brandId = brandId;
-
 
143
	}
-
 
144
 
-
 
145
	public String getCoveragePeriod() {
-
 
146
		return coveragePeriod;
-
 
147
	}
-
 
148
 
-
 
149
	public void setCoveragePeriod(String coveragePeriod) {
-
 
150
		this.coveragePeriod = coveragePeriod;
-
 
151
	}
-
 
152
 
-
 
153
	public String getColor() {
-
 
154
		return color;
-
 
155
	}
-
 
156
 
-
 
157
	public void setColor(String color) {
-
 
158
		this.color = color;
-
 
159
	}
124
 
160
 
125
	public String getFormattedCreateTimestamp(){
161
	public String getFormattedCreateTimestamp(){
126
		if(createTimestamp == null){
162
		if(createTimestamp == null){
127
			return null;
163
			return null;
128
		}
164
		}
Line 311... Line 347...
311
	@Override
347
	@Override
312
	public int hashCode() {
348
	public int hashCode() {
313
		final int prime = 31;
349
		final int prime = 31;
314
		int result = 1;
350
		int result = 1;
315
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
351
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
-
 
352
		result = prime * result + brandId;
-
 
353
		result = prime * result + ((color == null) ? 0 : color.hashCode());
-
 
354
		result = prime * result + ((coveragePeriod == null) ? 0 : coveragePeriod.hashCode());
316
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
355
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
317
		result = prime * result + ((customerAddress1 == null) ? 0 : customerAddress1.hashCode());
356
		result = prime * result + ((customerAddress1 == null) ? 0 : customerAddress1.hashCode());
318
		result = prime * result + ((customerAddress2 == null) ? 0 : customerAddress2.hashCode());
357
		result = prime * result + ((customerAddress2 == null) ? 0 : customerAddress2.hashCode());
319
		result = prime * result + ((customerCity == null) ? 0 : customerCity.hashCode());
358
		result = prime * result + ((customerCity == null) ? 0 : customerCity.hashCode());
320
		result = prime * result + ((customerDateOfBirth == null) ? 0 : customerDateOfBirth.hashCode());
359
		result = prime * result + ((customerDateOfBirth == null) ? 0 : customerDateOfBirth.hashCode());
Line 353... Line 392...
353
		if (brand == null) {
392
		if (brand == null) {
354
			if (other.brand != null)
393
			if (other.brand != null)
355
				return false;
394
				return false;
356
		} else if (!brand.equals(other.brand))
395
		} else if (!brand.equals(other.brand))
357
			return false;
396
			return false;
-
 
397
		if (brandId != other.brandId)
-
 
398
			return false;
-
 
399
		if (color == null) {
-
 
400
			if (other.color != null)
-
 
401
				return false;
-
 
402
		} else if (!color.equals(other.color))
-
 
403
			return false;
-
 
404
		if (coveragePeriod == null) {
-
 
405
			if (other.coveragePeriod != null)
-
 
406
				return false;
-
 
407
		} else if (!coveragePeriod.equals(other.coveragePeriod))
-
 
408
			return false;
358
		if (createTimestamp == null) {
409
		if (createTimestamp == null) {
359
			if (other.createTimestamp != null)
410
			if (other.createTimestamp != null)
360
				return false;
411
				return false;
361
		} else if (!createTimestamp.equals(other.createTimestamp))
412
		} else if (!createTimestamp.equals(other.createTimestamp))
362
			return false;
413
			return false;
Line 437... Line 488...
437
				return false;
488
				return false;
438
		} else if (!policyNumber.equals(other.policyNumber))
489
		} else if (!policyNumber.equals(other.policyNumber))
439
			return false;
490
			return false;
440
		if (posted != other.posted)
491
		if (posted != other.posted)
441
			return false;
492
			return false;
-
 
493
		if (productName == null) {
-
 
494
			if (other.productName != null)
-
 
495
				return false;
442
		if (productName.equals(other.productName))
496
		} else if (!productName.equals(other.productName))
443
			return false;
497
			return false;
444
		if (providerId != other.providerId)
498
		if (providerId != other.providerId)
445
			return false;
499
			return false;
446
		if (Float.floatToIntBits(purchaseAmount) != Float.floatToIntBits(other.purchaseAmount))
500
		if (Float.floatToIntBits(purchaseAmount) != Float.floatToIntBits(other.purchaseAmount))
447
			return false;
501
			return false;
Line 469... Line 523...
469
				+ ", customerMobileNumber=" + customerMobileNumber + ", customerEmailId=" + customerEmailId
523
				+ ", customerMobileNumber=" + customerMobileNumber + ", customerEmailId=" + customerEmailId
470
				+ ", customerDateOfBirth=" + customerDateOfBirth + ", customerAddress1=" + customerAddress1
524
				+ ", customerDateOfBirth=" + customerDateOfBirth + ", customerAddress1=" + customerAddress1
471
				+ ", customerAddress2=" + customerAddress2 + ", customerCity=" + customerCity + ", customerPinCode="
525
				+ ", customerAddress2=" + customerAddress2 + ", customerCity=" + customerCity + ", customerPinCode="
472
				+ customerPinCode + ", customerState=" + customerState + ", posted=" + posted + ", insuranceProvider="
526
				+ customerPinCode + ", customerState=" + customerState + ", posted=" + posted + ", insuranceProvider="
473
				+ insuranceProvider + ", createTimestamp=" + createTimestamp + ", invoiceCreationTimestamp="
527
				+ insuranceProvider + ", createTimestamp=" + createTimestamp + ", invoiceCreationTimestamp="
-
 
528
				+ invoiceCreationTimestamp + ", color=" + color + ", coveragePeriod=" + coveragePeriod + ", brandId="
474
				+ invoiceCreationTimestamp + "]";
529
				+ brandId + "]";
475
	}
530
	}
476
 
531
 
477
	 
532
	 
478
}
533
}
479
534