| Line 7... |
Line 7... |
| 7 |
private String auther;
|
7 |
private String auther;
|
| 8 |
private CustomCustomer customer;
|
8 |
private CustomCustomer customer;
|
| 9 |
private CustomRetailer retailer;
|
9 |
private CustomRetailer retailer;
|
| 10 |
private String invoiceNumber;
|
10 |
private String invoiceNumber;
|
| 11 |
private Set<CustomFofoOrderItem> orderItems;
|
11 |
private Set<CustomFofoOrderItem> orderItems;
|
| - |
|
12 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
| 12 |
private float totalAmount;
|
13 |
private float totalAmount;
|
| 13 |
public String getTitle() {
|
14 |
public String getTitle() {
|
| 14 |
return title;
|
15 |
return title;
|
| 15 |
}
|
16 |
}
|
| 16 |
public void setTitle(String title) {
|
17 |
public void setTitle(String title) {
|
| Line 44... |
Line 45... |
| 44 |
return orderItems;
|
45 |
return orderItems;
|
| 45 |
}
|
46 |
}
|
| 46 |
public void setOrderItems(Set<CustomFofoOrderItem> orderItems) {
|
47 |
public void setOrderItems(Set<CustomFofoOrderItem> orderItems) {
|
| 47 |
this.orderItems = orderItems;
|
48 |
this.orderItems = orderItems;
|
| 48 |
}
|
49 |
}
|
| - |
|
50 |
public Set<CustomInsurancePolicy> getInsurancePolicies() {
|
| - |
|
51 |
return insurancePolicies;
|
| - |
|
52 |
}
|
| - |
|
53 |
public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
|
| - |
|
54 |
this.insurancePolicies = insurancePolicies;
|
| - |
|
55 |
}
|
| 49 |
public float getTotalAmount() {
|
56 |
public float getTotalAmount() {
|
| 50 |
return totalAmount;
|
57 |
return totalAmount;
|
| 51 |
}
|
58 |
}
|
| 52 |
public void setTotalAmount(float totalAmount) {
|
59 |
public void setTotalAmount(float totalAmount) {
|
| 53 |
this.totalAmount = totalAmount;
|
60 |
this.totalAmount = totalAmount;
|
| Line 58... |
Line 65... |
| 58 |
int result = 1;
|
65 |
int result = 1;
|
| 59 |
result = prime * result + ((auther == null) ? 0 : auther.hashCode());
|
66 |
result = prime * result + ((auther == null) ? 0 : auther.hashCode());
|
| 60 |
result = prime * result + ((customer == null) ? 0 : customer.hashCode());
|
67 |
result = prime * result + ((customer == null) ? 0 : customer.hashCode());
|
| 61 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
68 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
| 62 |
result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
|
69 |
result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
|
| - |
|
70 |
result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
|
| 63 |
result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
|
71 |
result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
|
| 64 |
result = prime * result + ((title == null) ? 0 : title.hashCode());
|
72 |
result = prime * result + ((title == null) ? 0 : title.hashCode());
|
| 65 |
result = prime * result + Float.floatToIntBits(totalAmount);
|
73 |
result = prime * result + Float.floatToIntBits(totalAmount);
|
| 66 |
return result;
|
74 |
return result;
|
| 67 |
}
|
75 |
}
|
| Line 92... |
Line 100... |
| 92 |
if (orderItems == null) {
|
100 |
if (orderItems == null) {
|
| 93 |
if (other.orderItems != null)
|
101 |
if (other.orderItems != null)
|
| 94 |
return false;
|
102 |
return false;
|
| 95 |
} else if (!orderItems.equals(other.orderItems))
|
103 |
} else if (!orderItems.equals(other.orderItems))
|
| 96 |
return false;
|
104 |
return false;
|
| - |
|
105 |
if (insurancePolicies == null) {
|
| - |
|
106 |
if (other.insurancePolicies != null)
|
| - |
|
107 |
return false;
|
| - |
|
108 |
} else if (!insurancePolicies.equals(other.insurancePolicies))
|
| - |
|
109 |
return false;
|
| 97 |
if (retailer == null) {
|
110 |
if (retailer == null) {
|
| 98 |
if (other.retailer != null)
|
111 |
if (other.retailer != null)
|
| 99 |
return false;
|
112 |
return false;
|
| 100 |
} else if (!retailer.equals(other.retailer))
|
113 |
} else if (!retailer.equals(other.retailer))
|
| 101 |
return false;
|
114 |
return false;
|
| Line 109... |
Line 122... |
| 109 |
return true;
|
122 |
return true;
|
| 110 |
}
|
123 |
}
|
| 111 |
@Override
|
124 |
@Override
|
| 112 |
public String toString() {
|
125 |
public String toString() {
|
| 113 |
return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
|
126 |
return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
|
| 114 |
+ ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", totalAmount=" + totalAmount
|
127 |
+ ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", insurancePolicies="
|
| 115 |
+ "]";
|
128 |
+ insurancePolicies + ", totalAmount=" + totalAmount + "]";
|
| 116 |
}
|
129 |
}
|
| 117 |
|
130 |
|
| 118 |
|
131 |
|
| - |
|
132 |
|
| 119 |
}
|
133 |
}
|