| Line 118... |
Line 118... |
| 118 |
|
118 |
|
| 119 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
119 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 120 |
@Column(name = "invoice_creation_timestamp")
|
120 |
@Column(name = "invoice_creation_timestamp")
|
| 121 |
private LocalDateTime invoiceCreationTimestamp = LocalDateTime.now();
|
121 |
private LocalDateTime invoiceCreationTimestamp = LocalDateTime.now();
|
| 122 |
|
122 |
|
| - |
|
123 |
@Column(name = "cancel_timestamp")
|
| - |
|
124 |
private LocalDateTime cancelledOn;
|
| - |
|
125 |
|
| 123 |
@Transient
|
126 |
@Transient
|
| 124 |
private String color;
|
127 |
private String color;
|
| 125 |
|
128 |
|
| 126 |
@Transient
|
129 |
@Transient
|
| 127 |
private String coveragePeriod;
|
130 |
private String coveragePeriod;
|
| Line 143... |
Line 146... |
| 143 |
|
146 |
|
| 144 |
public void setDeviceInvoiceNumber(String deviceInvoiceNumber) {
|
147 |
public void setDeviceInvoiceNumber(String deviceInvoiceNumber) {
|
| 145 |
this.deviceInvoiceNumber = deviceInvoiceNumber;
|
148 |
this.deviceInvoiceNumber = deviceInvoiceNumber;
|
| 146 |
}
|
149 |
}
|
| 147 |
|
150 |
|
| - |
|
151 |
public LocalDateTime getCancelledOn() {
|
| - |
|
152 |
return cancelledOn;
|
| - |
|
153 |
}
|
| - |
|
154 |
|
| - |
|
155 |
public void setCancelledOn(LocalDateTime cancelledOn) {
|
| - |
|
156 |
this.cancelledOn = cancelledOn;
|
| - |
|
157 |
}
|
| - |
|
158 |
|
| - |
|
159 |
@Override
|
| - |
|
160 |
public boolean equals(Object o) {
|
| - |
|
161 |
if (this == o) return true;
|
| - |
|
162 |
if (o == null || getClass() != o.getClass()) return false;
|
| - |
|
163 |
InsurancePolicy that = (InsurancePolicy) o;
|
| - |
|
164 |
return id == that.id && retailerId == that.retailerId && Float.compare(that.purchaseAmount, purchaseAmount) == 0 && Float.compare(that.saleAmount, saleAmount) == 0 && Float.compare(that.sellingPrice, sellingPrice) == 0 && providerId == that.providerId && posted == that.posted && brandId == that.brandId && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(productName, that.productName) && Objects.equals(serialNumber, that.serialNumber) && Objects.equals(modelName, that.modelName) && Objects.equals(brand, that.brand) && Objects.equals(policyNumber, that.policyNumber) && Objects.equals(policyPlan, that.policyPlan) && Objects.equals(customerFirstName, that.customerFirstName) && Objects.equals(customerLastName, that.customerLastName) && Objects.equals(customerMobileNumber, that.customerMobileNumber) && Objects.equals(customerEmailId, that.customerEmailId) && Objects.equals(customerDateOfBirth, that.customerDateOfBirth) && Objects.equals(customerAddress1, that.customerAddress1) && Objects.equals(customerAddress2, that.customerAddress2) && Objects.equals(customerCity, that.customerCity) && Objects.equals(customerPinCode, that.customerPinCode) && Objects.equals(customerState, that.customerState) && Objects.equals(deviceInvoiceNumber, that.deviceInvoiceNumber) && Objects.equals(insuranceProvider, that.insuranceProvider) && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(invoiceCreationTimestamp, that.invoiceCreationTimestamp) && Objects.equals(cancelledOn, that.cancelledOn) && Objects.equals(color, that.color) && Objects.equals(coveragePeriod, that.coveragePeriod);
|
| - |
|
165 |
}
|
| - |
|
166 |
|
| - |
|
167 |
@Override
|
| - |
|
168 |
public int hashCode() {
|
| - |
|
169 |
return Objects.hash(id, invoiceNumber, retailerId, purchaseAmount, saleAmount, sellingPrice, productName, serialNumber, modelName, brand, policyNumber, policyPlan, providerId, customerFirstName, customerLastName, customerMobileNumber, customerEmailId, customerDateOfBirth, customerAddress1, customerAddress2, customerCity, customerPinCode, customerState, deviceInvoiceNumber, posted, insuranceProvider, createTimestamp, invoiceCreationTimestamp, cancelledOn, color, coveragePeriod, brandId);
|
| - |
|
170 |
}
|
| - |
|
171 |
|
| 148 |
public String getCoveragePeriod() {
|
172 |
public String getCoveragePeriod() {
|
| 149 |
return coveragePeriod;
|
173 |
return coveragePeriod;
|
| 150 |
}
|
174 |
}
|
| 151 |
|
175 |
|
| 152 |
public void setCoveragePeriod(String coveragePeriod) {
|
176 |
public void setCoveragePeriod(String coveragePeriod) {
|
| Line 376... |
Line 400... |
| 376 |
public void setPolicyPlan(String policyPlan) {
|
400 |
public void setPolicyPlan(String policyPlan) {
|
| 377 |
this.policyPlan = policyPlan;
|
401 |
this.policyPlan = policyPlan;
|
| 378 |
}
|
402 |
}
|
| 379 |
|
403 |
|
| 380 |
@Override
|
404 |
@Override
|
| 381 |
public boolean equals(Object o) {
|
- |
|
| 382 |
if (this == o) return true;
|
- |
|
| 383 |
if (o == null || getClass() != o.getClass()) return false;
|
- |
|
| 384 |
InsurancePolicy that = (InsurancePolicy) o;
|
- |
|
| 385 |
return id == that.id && retailerId == that.retailerId && Float.compare(that.purchaseAmount, purchaseAmount) == 0 && Float.compare(that.saleAmount, saleAmount) == 0 && Float.compare(that.sellingPrice, sellingPrice) == 0 && policyPlan == that.policyPlan && providerId == that.providerId && posted == that.posted && brandId == that.brandId && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(productName, that.productName) && Objects.equals(serialNumber, that.serialNumber) && Objects.equals(modelName, that.modelName) && Objects.equals(brand, that.brand) && Objects.equals(policyNumber, that.policyNumber) && Objects.equals(customerFirstName, that.customerFirstName) && Objects.equals(customerLastName, that.customerLastName) && Objects.equals(customerMobileNumber, that.customerMobileNumber) && Objects.equals(customerEmailId, that.customerEmailId) && Objects.equals(customerDateOfBirth, that.customerDateOfBirth) && Objects.equals(customerAddress1, that.customerAddress1) && Objects.equals(customerAddress2, that.customerAddress2) && Objects.equals(customerCity, that.customerCity) && Objects.equals(customerPinCode, that.customerPinCode) && Objects.equals(customerState, that.customerState) && Objects.equals(deviceInvoiceNumber, that.deviceInvoiceNumber) && Objects.equals(insuranceProvider, that.insuranceProvider) && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(invoiceCreationTimestamp, that.invoiceCreationTimestamp) && Objects.equals(color, that.color) && Objects.equals(coveragePeriod, that.coveragePeriod);
|
- |
|
| 386 |
}
|
- |
|
| 387 |
|
- |
|
| 388 |
@Override
|
- |
|
| 389 |
public int hashCode() {
|
- |
|
| 390 |
return Objects.hash(id, invoiceNumber, retailerId, purchaseAmount, saleAmount, sellingPrice, productName, serialNumber, modelName, brand, policyNumber, policyPlan, providerId, customerFirstName, customerLastName, customerMobileNumber, customerEmailId, customerDateOfBirth, customerAddress1, customerAddress2, customerCity, customerPinCode, customerState, deviceInvoiceNumber, posted, insuranceProvider, createTimestamp, invoiceCreationTimestamp, color, coveragePeriod, brandId);
|
- |
|
| 391 |
}
|
- |
|
| 392 |
|
- |
|
| 393 |
@Override
|
- |
|
| 394 |
public String toString() {
|
405 |
public String toString() {
|
| 395 |
return "InsurancePolicy [id=" + id + ", invoiceNumber=" + invoiceNumber + ", retailerId=" + retailerId
|
406 |
return "InsurancePolicy [id=" + id + ", invoiceNumber=" + invoiceNumber + ", retailerId=" + retailerId
|
| 396 |
+ ", purchaseAmount=" + purchaseAmount + ", saleAmount=" + saleAmount + ", sellingPrice=" + sellingPrice
|
407 |
+ ", purchaseAmount=" + purchaseAmount + ", saleAmount=" + saleAmount + ", sellingPrice=" + sellingPrice
|
| 397 |
+ ", productName=" + productName + ", serialNumber=" + serialNumber + ", modelName=" + modelName
|
408 |
+ ", productName=" + productName + ", serialNumber=" + serialNumber + ", modelName=" + modelName
|
| 398 |
+ ", brand=" + brand + ", policyNumber=" + policyNumber + ", providerId=" + providerId
|
409 |
+ ", brand=" + brand + ", policyNumber=" + policyNumber + ", providerId=" + providerId
|