Subversion Repositories SmartDukaan

Rev

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

Rev 34798 Rev 35126
Line 26... Line 26...
26
	private int customerId;
26
	private int customerId;
27
	private String customerEmail;
27
	private String customerEmail;
28
	private LocalDate dob;
28
	private LocalDate dob;
29
	private int fofoOrderId;
29
	private int fofoOrderId;
30
	private int fofoOrderItemId;
30
	private int fofoOrderItemId;
-
 
31
	private String gender;
31
	private Set<CustomPaymentOption> paymentOptions;
32
	private Set<CustomPaymentOption> paymentOptions;
32
 
33
 
33
	public Set<CustomPaymentOption> getPaymentOptions() {
34
	public Set<CustomPaymentOption> getPaymentOptions() {
34
		return paymentOptions;
35
		return paymentOptions;
35
	}
36
	}
Line 212... Line 213...
212
 
213
 
213
    public void setCorrelationId(String correlationId) {
214
    public void setCorrelationId(String correlationId) {
214
        this.correlationId = correlationId;
215
        this.correlationId = correlationId;
215
    }
216
    }
216
 
217
 
-
 
218
	public String getGender() {
-
 
219
		return gender;
-
 
220
	}
-
 
221
 
-
 
222
	public void setGender(String gender) {
-
 
223
		this.gender = gender;
-
 
224
	}
-
 
225
 
217
	@Override
226
	@Override
218
	public boolean equals(Object o) {
227
	public boolean equals(Object o) {
219
		if (this == o) return true;
228
		if (this == o) return true;
220
		if (o == null || getClass() != o.getClass()) return false;
229
		if (o == null || getClass() != o.getClass()) return false;
221
		InsuranceModel that = (InsuranceModel) o;
230
		InsuranceModel that = (InsuranceModel) o;
222
        return Float.compare(insuranceAmount, that.insuranceAmount) == 0 && Float.compare(deviceSellingPrice, that.deviceSellingPrice) == 0 && customerId == that.customerId && fofoOrderId == that.fofoOrderId && fofoOrderItemId == that.fofoOrderItemId && Objects.equals(brand, that.brand) && Objects.equals(color, that.color) && Objects.equals(ram, that.ram) && Objects.equals(memory, that.memory) && Objects.equals(mfgDate, that.mfgDate) && Objects.equals(wmfgDate, that.wmfgDate) && Objects.equals(modelName, that.modelName) && Objects.equals(insuranceId, that.insuranceId) && Objects.equals(insuranceUId, that.insuranceUId) && Objects.equals(correlationId, that.correlationId) && Objects.equals(serialNumber, that.serialNumber) && Objects.equals(providerName, that.providerName) && Objects.equals(providerId, that.providerId) && Objects.equals(underWriterName, that.underWriterName) && Objects.equals(underWriterId, that.underWriterId) && Objects.equals(customerEmail, that.customerEmail) && Objects.equals(dob, that.dob) && Objects.equals(paymentOptions, that.paymentOptions);
231
		return Float.compare(insuranceAmount, that.insuranceAmount) == 0 && Float.compare(deviceSellingPrice, that.deviceSellingPrice) == 0 && customerId == that.customerId && fofoOrderId == that.fofoOrderId && fofoOrderItemId == that.fofoOrderItemId && Objects.equals(brand, that.brand) && Objects.equals(color, that.color) && Objects.equals(ram, that.ram) && Objects.equals(memory, that.memory) && Objects.equals(mfgDate, that.mfgDate) && Objects.equals(wmfgDate, that.wmfgDate) && Objects.equals(modelName, that.modelName) && Objects.equals(insuranceId, that.insuranceId) && Objects.equals(insuranceUId, that.insuranceUId) && Objects.equals(correlationId, that.correlationId) && Objects.equals(serialNumber, that.serialNumber) && Objects.equals(providerName, that.providerName) && Objects.equals(providerId, that.providerId) && Objects.equals(underWriterName, that.underWriterName) && Objects.equals(underWriterId, that.underWriterId) && Objects.equals(customerEmail, that.customerEmail) && Objects.equals(dob, that.dob) && Objects.equals(gender, that.gender) && Objects.equals(paymentOptions, that.paymentOptions);
223
	}
232
	}
224
 
233
 
225
	@Override
234
	@Override
226
	public int hashCode() {
235
	public int hashCode() {
227
        return Objects.hash(brand, color, ram, memory, mfgDate, wmfgDate, modelName, insuranceAmount, insuranceId, insuranceUId, correlationId, deviceSellingPrice, serialNumber, providerName, providerId, underWriterName, underWriterId, customerId, customerEmail, dob, fofoOrderId, fofoOrderItemId, paymentOptions);
236
		return Objects.hash(brand, color, ram, memory, mfgDate, wmfgDate, modelName, insuranceAmount, insuranceId, insuranceUId, correlationId, deviceSellingPrice, serialNumber, providerName, providerId, underWriterName, underWriterId, customerId, customerEmail, dob, fofoOrderId, fofoOrderItemId, gender, paymentOptions);
228
	}
237
	}
229
 
238
 
230
	@Override
239
	@Override
231
	public String toString() {
240
	public String toString() {
232
		return "InsuranceModel{" +
241
		return "InsuranceModel{" +
Line 238... Line 247...
238
				", wmfgDate=" + wmfgDate +
247
				", wmfgDate=" + wmfgDate +
239
				", modelName='" + modelName + '\'' +
248
				", modelName='" + modelName + '\'' +
240
				", insuranceAmount=" + insuranceAmount +
249
				", insuranceAmount=" + insuranceAmount +
241
				", insuranceId='" + insuranceId + '\'' +
250
				", insuranceId='" + insuranceId + '\'' +
242
				", insuranceUId='" + insuranceUId + '\'' +
251
				", insuranceUId='" + insuranceUId + '\'' +
243
                ", correlationId='" + correlationId + '\'' +
252
				", correlationId='" + correlationId + '\'' +
244
				", deviceSellingPrice=" + deviceSellingPrice +
253
				", deviceSellingPrice=" + deviceSellingPrice +
245
				", serialNumber='" + serialNumber + '\'' +
254
				", serialNumber='" + serialNumber + '\'' +
246
				", providerName='" + providerName + '\'' +
255
				", providerName='" + providerName + '\'' +
247
				", providerId='" + providerId + '\'' +
256
				", providerId='" + providerId + '\'' +
248
				", underWriterName='" + underWriterName + '\'' +
257
				", underWriterName='" + underWriterName + '\'' +
Line 250... Line 259...
250
				", customerId=" + customerId +
259
				", customerId=" + customerId +
251
				", customerEmail='" + customerEmail + '\'' +
260
				", customerEmail='" + customerEmail + '\'' +
252
				", dob=" + dob +
261
				", dob=" + dob +
253
				", fofoOrderId=" + fofoOrderId +
262
				", fofoOrderId=" + fofoOrderId +
254
				", fofoOrderItemId=" + fofoOrderItemId +
263
				", fofoOrderItemId=" + fofoOrderItemId +
-
 
264
				", gender='" + gender + '\'' +
255
				", paymentOptions=" + paymentOptions +
265
				", paymentOptions=" + paymentOptions +
256
				'}';
266
				'}';
257
	}
267
	}
258
 
268
 
259
}
269
}