| 24773 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.entity.transaction;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.Column;
|
|
|
6 |
import javax.persistence.Entity;
|
|
|
7 |
import javax.persistence.Id;
|
|
|
8 |
import javax.persistence.Table;
|
|
|
9 |
|
|
|
10 |
@Entity
|
| 32724 |
amit.gupta |
11 |
@Table(name="transaction.returnorder")
|
| 24773 |
amit.gupta |
12 |
public class ReturnOrder {
|
|
|
13 |
|
|
|
14 |
@Id
|
|
|
15 |
@Column
|
|
|
16 |
private int orderId; // required
|
|
|
17 |
@Column
|
|
|
18 |
private int warehouseId; // required
|
|
|
19 |
@Column
|
|
|
20 |
private int jacketNumber; // required
|
|
|
21 |
@Column
|
|
|
22 |
private String invoiceNumber; // required
|
|
|
23 |
@Column
|
|
|
24 |
private int itemId; // required
|
|
|
25 |
@Column
|
|
|
26 |
private String productGroup; // required
|
|
|
27 |
@Column
|
|
|
28 |
private String brand; // required
|
|
|
29 |
@Column
|
|
|
30 |
private String modelNumber; // required
|
|
|
31 |
@Column
|
|
|
32 |
private String modelName; // required
|
|
|
33 |
@Column
|
|
|
34 |
private String color; // required
|
|
|
35 |
@Column
|
|
|
36 |
private double totalPrice; // required
|
|
|
37 |
@Column
|
|
|
38 |
private double transferPrice; // required
|
|
|
39 |
@Column
|
|
|
40 |
private boolean processedStatus; // required
|
|
|
41 |
@Column
|
|
|
42 |
private LocalDateTime createdAt; // required
|
|
|
43 |
@Column
|
|
|
44 |
private LocalDateTime processedAt; // required
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
@Override
|
|
|
48 |
public int hashCode() {
|
|
|
49 |
final int prime = 31;
|
|
|
50 |
int result = 1;
|
|
|
51 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
52 |
result = prime * result + ((color == null) ? 0 : color.hashCode());
|
|
|
53 |
result = prime * result + ((createdAt == null) ? 0 : createdAt.hashCode());
|
|
|
54 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
|
|
55 |
result = prime * result + itemId;
|
|
|
56 |
result = prime * result + jacketNumber;
|
|
|
57 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
58 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
59 |
result = prime * result + orderId;
|
|
|
60 |
result = prime * result + ((processedAt == null) ? 0 : processedAt.hashCode());
|
|
|
61 |
result = prime * result + (processedStatus ? 1231 : 1237);
|
|
|
62 |
result = prime * result + ((productGroup == null) ? 0 : productGroup.hashCode());
|
|
|
63 |
long temp;
|
|
|
64 |
temp = Double.doubleToLongBits(totalPrice);
|
|
|
65 |
result = prime * result + (int) (temp ^ (temp >>> 32));
|
|
|
66 |
temp = Double.doubleToLongBits(transferPrice);
|
|
|
67 |
result = prime * result + (int) (temp ^ (temp >>> 32));
|
|
|
68 |
result = prime * result + warehouseId;
|
|
|
69 |
return result;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
@Override
|
|
|
74 |
public boolean equals(Object obj) {
|
|
|
75 |
if (this == obj)
|
|
|
76 |
return true;
|
|
|
77 |
if (obj == null)
|
|
|
78 |
return false;
|
|
|
79 |
if (getClass() != obj.getClass())
|
|
|
80 |
return false;
|
|
|
81 |
ReturnOrder other = (ReturnOrder) obj;
|
|
|
82 |
if (brand == null) {
|
|
|
83 |
if (other.brand != null)
|
|
|
84 |
return false;
|
|
|
85 |
} else if (!brand.equals(other.brand))
|
|
|
86 |
return false;
|
|
|
87 |
if (color == null) {
|
|
|
88 |
if (other.color != null)
|
|
|
89 |
return false;
|
|
|
90 |
} else if (!color.equals(other.color))
|
|
|
91 |
return false;
|
|
|
92 |
if (createdAt == null) {
|
|
|
93 |
if (other.createdAt != null)
|
|
|
94 |
return false;
|
|
|
95 |
} else if (!createdAt.equals(other.createdAt))
|
|
|
96 |
return false;
|
|
|
97 |
if (invoiceNumber == null) {
|
|
|
98 |
if (other.invoiceNumber != null)
|
|
|
99 |
return false;
|
|
|
100 |
} else if (!invoiceNumber.equals(other.invoiceNumber))
|
|
|
101 |
return false;
|
|
|
102 |
if (itemId != other.itemId)
|
|
|
103 |
return false;
|
|
|
104 |
if (jacketNumber != other.jacketNumber)
|
|
|
105 |
return false;
|
|
|
106 |
if (modelName == null) {
|
|
|
107 |
if (other.modelName != null)
|
|
|
108 |
return false;
|
|
|
109 |
} else if (!modelName.equals(other.modelName))
|
|
|
110 |
return false;
|
|
|
111 |
if (modelNumber == null) {
|
|
|
112 |
if (other.modelNumber != null)
|
|
|
113 |
return false;
|
|
|
114 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
115 |
return false;
|
|
|
116 |
if (orderId != other.orderId)
|
|
|
117 |
return false;
|
|
|
118 |
if (processedAt == null) {
|
|
|
119 |
if (other.processedAt != null)
|
|
|
120 |
return false;
|
|
|
121 |
} else if (!processedAt.equals(other.processedAt))
|
|
|
122 |
return false;
|
|
|
123 |
if (processedStatus != other.processedStatus)
|
|
|
124 |
return false;
|
|
|
125 |
if (productGroup == null) {
|
|
|
126 |
if (other.productGroup != null)
|
|
|
127 |
return false;
|
|
|
128 |
} else if (!productGroup.equals(other.productGroup))
|
|
|
129 |
return false;
|
|
|
130 |
if (Double.doubleToLongBits(totalPrice) != Double.doubleToLongBits(other.totalPrice))
|
|
|
131 |
return false;
|
|
|
132 |
if (Double.doubleToLongBits(transferPrice) != Double.doubleToLongBits(other.transferPrice))
|
|
|
133 |
return false;
|
|
|
134 |
if (warehouseId != other.warehouseId)
|
|
|
135 |
return false;
|
|
|
136 |
return true;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
public int getOrderId() {
|
|
|
141 |
return orderId;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
public void setOrderId(int orderId) {
|
|
|
146 |
this.orderId = orderId;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
public int getWarehouseId() {
|
|
|
151 |
return warehouseId;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
public void setWarehouseId(int warehouseId) {
|
|
|
156 |
this.warehouseId = warehouseId;
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
public int getJacketNumber() {
|
|
|
161 |
return jacketNumber;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
public void setJacketNumber(int jacketNumber) {
|
|
|
166 |
this.jacketNumber = jacketNumber;
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
public String getInvoiceNumber() {
|
|
|
171 |
return invoiceNumber;
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
176 |
this.invoiceNumber = invoiceNumber;
|
|
|
177 |
}
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
public int getItemId() {
|
|
|
181 |
return itemId;
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
public void setItemId(int itemId) {
|
|
|
186 |
this.itemId = itemId;
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
public String getProductGroup() {
|
|
|
191 |
return productGroup;
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
public void setProductGroup(String productGroup) {
|
|
|
196 |
this.productGroup = productGroup;
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
public String getBrand() {
|
|
|
201 |
return brand;
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
public void setBrand(String brand) {
|
|
|
206 |
this.brand = brand;
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
public String getModelNumber() {
|
|
|
211 |
return modelNumber;
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
public void setModelNumber(String modelNumber) {
|
|
|
216 |
this.modelNumber = modelNumber;
|
|
|
217 |
}
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
public String getModelName() {
|
|
|
221 |
return modelName;
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
|
|
|
225 |
public void setModelName(String modelName) {
|
|
|
226 |
this.modelName = modelName;
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
public String getColor() {
|
|
|
231 |
return color;
|
|
|
232 |
}
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
public void setColor(String color) {
|
|
|
236 |
this.color = color;
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
public double getTotalPrice() {
|
|
|
241 |
return totalPrice;
|
|
|
242 |
}
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
public void setTotalPrice(double totalPrice) {
|
|
|
246 |
this.totalPrice = totalPrice;
|
|
|
247 |
}
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
public double getTransferPrice() {
|
|
|
251 |
return transferPrice;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
public void setTransferPrice(double transferPrice) {
|
|
|
256 |
this.transferPrice = transferPrice;
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
|
|
|
260 |
public boolean isProcessedStatus() {
|
|
|
261 |
return processedStatus;
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
public void setProcessedStatus(boolean processedStatus) {
|
|
|
266 |
this.processedStatus = processedStatus;
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
|
|
|
270 |
public LocalDateTime getCreatedAt() {
|
|
|
271 |
return createdAt;
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
|
|
|
275 |
public void setCreatedAt(LocalDateTime createdAt) {
|
|
|
276 |
this.createdAt = createdAt;
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
|
|
|
280 |
public LocalDateTime getProcessedAt() {
|
|
|
281 |
return processedAt;
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
|
|
|
285 |
public void setProcessedAt(LocalDateTime processedAt) {
|
|
|
286 |
this.processedAt = processedAt;
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
|
|
|
290 |
@Override
|
|
|
291 |
public String toString() {
|
|
|
292 |
return "ReturnOrder [orderId=" + orderId + ", warehouseId=" + warehouseId + ", jacketNumber=" + jacketNumber
|
|
|
293 |
+ ", invoiceNumber=" + invoiceNumber + ", itemId=" + itemId + ", productGroup=" + productGroup
|
|
|
294 |
+ ", brand=" + brand + ", modelNumber=" + modelNumber + ", modelName=" + modelName + ", color=" + color
|
|
|
295 |
+ ", totalPrice=" + totalPrice + ", transferPrice=" + transferPrice + ", processedStatus="
|
|
|
296 |
+ processedStatus + ", createdAt=" + createdAt + ", processedAt=" + processedAt + "]";
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
}
|