| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.entity.fofo;
|
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
| 2 |
|
2 |
|
| 3 |
import java.io.Serializable;
|
- |
|
| 4 |
import java.time.LocalDateTime;
|
- |
|
| 5 |
import java.util.List;
|
- |
|
| 6 |
|
- |
|
| 7 |
import javax.persistence.Column;
|
- |
|
| 8 |
import javax.persistence.Convert;
|
- |
|
| 9 |
import javax.persistence.Entity;
|
- |
|
| 10 |
import javax.persistence.EnumType;
|
- |
|
| 11 |
import javax.persistence.Enumerated;
|
- |
|
| 12 |
import javax.persistence.GeneratedValue;
|
- |
|
| 13 |
import javax.persistence.GenerationType;
|
- |
|
| 14 |
import javax.persistence.Id;
|
- |
|
| 15 |
import javax.persistence.NamedQueries;
|
- |
|
| 16 |
import javax.persistence.NamedQuery;
|
- |
|
| 17 |
import javax.persistence.Table;
|
- |
|
| 18 |
import javax.persistence.Transient;
|
- |
|
| 19 |
import javax.persistence.UniqueConstraint;
|
- |
|
| 20 |
|
- |
|
| 21 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
3 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
| 22 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
4 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
| 23 |
|
5 |
|
| - |
|
6 |
import javax.persistence.*;
|
| - |
|
7 |
import java.io.Serializable;
|
| - |
|
8 |
import java.time.LocalDateTime;
|
| - |
|
9 |
|
| 24 |
@Entity
|
10 |
@Entity
|
| 25 |
@Table(name = "fofo.pending_order_item", uniqueConstraints = {
|
11 |
@Table(name = "fofo.pending_order_item", uniqueConstraints = {
|
| 26 |
@UniqueConstraint(name = "UK_ORDER_ID_AND_ITEM_ID", columnNames = { "order_id", "item_id" }), })
|
12 |
@UniqueConstraint(name = "UK_ORDER_ID_AND_ITEM_ID", columnNames = { "order_id", "item_id" }), })
|
| 27 |
|
13 |
|
| 28 |
@NamedQueries({
|
14 |
@NamedQueries({
|
| Line 61... |
Line 47... |
| 61 |
private int itemId;
|
47 |
private int itemId;
|
| 62 |
|
48 |
|
| 63 |
@Column(name = "remark")
|
49 |
@Column(name = "remark")
|
| 64 |
private String remark;
|
50 |
private String remark;
|
| 65 |
|
51 |
|
| - |
|
52 |
@Column(name = "is_settled")
|
| - |
|
53 |
private boolean isSettled;
|
| - |
|
54 |
|
| 66 |
public String getRemark() {
|
55 |
public String getRemark() {
|
| 67 |
return remark;
|
56 |
return remark;
|
| 68 |
}
|
57 |
}
|
| 69 |
|
58 |
|
| 70 |
public void setRemark(String remark) {
|
59 |
public void setRemark(String remark) {
|
| Line 89... |
Line 78... |
| 89 |
private int quantity;
|
78 |
private int quantity;
|
| 90 |
|
79 |
|
| 91 |
@Column(name = "selling_price")
|
80 |
@Column(name = "selling_price")
|
| 92 |
private float sellingPrice;
|
81 |
private float sellingPrice;
|
| 93 |
|
82 |
|
| - |
|
83 |
@Column(name = "extended_warranty_price")
|
| - |
|
84 |
private float extendedWarrantyPrice;
|
| - |
|
85 |
|
| 94 |
@Transient
|
86 |
@Transient
|
| 95 |
private PendingOrder pendingOrder;
|
87 |
private PendingOrder pendingOrder;
|
| 96 |
|
88 |
|
| 97 |
public PendingOrder getPendingOrder() {
|
89 |
public PendingOrder getPendingOrder() {
|
| 98 |
return pendingOrder;
|
90 |
return pendingOrder;
|
| Line 174... |
Line 166... |
| 174 |
|
166 |
|
| 175 |
public void setCancelledTimestamp(LocalDateTime cancelledTimestamp) {
|
167 |
public void setCancelledTimestamp(LocalDateTime cancelledTimestamp) {
|
| 176 |
this.cancelledTimestamp = cancelledTimestamp;
|
168 |
this.cancelledTimestamp = cancelledTimestamp;
|
| 177 |
}
|
169 |
}
|
| 178 |
|
170 |
|
| - |
|
171 |
public boolean isSettled() {
|
| - |
|
172 |
return isSettled;
|
| - |
|
173 |
}
|
| - |
|
174 |
|
| - |
|
175 |
public void setSettled(boolean isSettled) {
|
| - |
|
176 |
isSettled = isSettled;
|
| - |
|
177 |
}
|
| - |
|
178 |
|
| 179 |
@Column(name = "scheduled_delivery_time")
|
179 |
@Column(name = "scheduled_delivery_time")
|
| 180 |
private LocalDateTime scheduledDeliveryTime;
|
180 |
private LocalDateTime scheduledDeliveryTime;
|
| 181 |
|
181 |
|
| 182 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
182 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 183 |
@Column(name = "create_timestamp")
|
183 |
@Column(name = "create_timestamp")
|
| Line 200... |
Line 200... |
| 200 |
result = prime * result + ((pendingOrder == null) ? 0 : pendingOrder.hashCode());
|
200 |
result = prime * result + ((pendingOrder == null) ? 0 : pendingOrder.hashCode());
|
| 201 |
result = prime * result + quantity;
|
201 |
result = prime * result + quantity;
|
| 202 |
result = prime * result + ((remark == null) ? 0 : remark.hashCode());
|
202 |
result = prime * result + ((remark == null) ? 0 : remark.hashCode());
|
| 203 |
result = prime * result + ((scheduledDeliveryTime == null) ? 0 : scheduledDeliveryTime.hashCode());
|
203 |
result = prime * result + ((scheduledDeliveryTime == null) ? 0 : scheduledDeliveryTime.hashCode());
|
| 204 |
result = prime * result + Float.floatToIntBits(sellingPrice);
|
204 |
result = prime * result + Float.floatToIntBits(sellingPrice);
|
| - |
|
205 |
result = prime * result + Float.floatToIntBits(extendedWarrantyPrice);
|
| 205 |
result = prime * result + ((status == null) ? 0 : status.hashCode());
|
206 |
result = prime * result + ((status == null) ? 0 : status.hashCode());
|
| 206 |
result = prime * result + ((statusDescription == null) ? 0 : statusDescription.hashCode());
|
207 |
result = prime * result + ((statusDescription == null) ? 0 : statusDescription.hashCode());
|
| 207 |
result = prime * result + ((verifiedTimestamp == null) ? 0 : verifiedTimestamp.hashCode());
|
208 |
result = prime * result + ((verifiedTimestamp == null) ? 0 : verifiedTimestamp.hashCode());
|
| 208 |
return result;
|
209 |
return result;
|
| 209 |
}
|
210 |
}
|
| Line 275... |
Line 276... |
| 275 |
return false;
|
276 |
return false;
|
| 276 |
} else if (!scheduledDeliveryTime.equals(other.scheduledDeliveryTime))
|
277 |
} else if (!scheduledDeliveryTime.equals(other.scheduledDeliveryTime))
|
| 277 |
return false;
|
278 |
return false;
|
| 278 |
if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
|
279 |
if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
|
| 279 |
return false;
|
280 |
return false;
|
| - |
|
281 |
if (Float.floatToIntBits(extendedWarrantyPrice) != Float.floatToIntBits(other.extendedWarrantyPrice))
|
| - |
|
282 |
return false;
|
| 280 |
if (status != other.status)
|
283 |
if (status != other.status)
|
| 281 |
return false;
|
284 |
return false;
|
| 282 |
if (statusDescription == null) {
|
285 |
if (statusDescription == null) {
|
| 283 |
if (other.statusDescription != null)
|
286 |
if (other.statusDescription != null)
|
| 284 |
return false;
|
287 |
return false;
|
| Line 338... |
Line 341... |
| 338 |
|
341 |
|
| 339 |
public void setSellingPrice(float sellingPrice) {
|
342 |
public void setSellingPrice(float sellingPrice) {
|
| 340 |
this.sellingPrice = sellingPrice;
|
343 |
this.sellingPrice = sellingPrice;
|
| 341 |
}
|
344 |
}
|
| 342 |
|
345 |
|
| - |
|
346 |
public float getExtendedWarrantyPrice() {
|
| - |
|
347 |
return extendedWarrantyPrice;
|
| - |
|
348 |
}
|
| - |
|
349 |
|
| - |
|
350 |
public void setExtendedWarrantyPrice(float extendedWarrantyPrice) {
|
| - |
|
351 |
this.extendedWarrantyPrice = extendedWarrantyPrice;
|
| - |
|
352 |
}
|
| - |
|
353 |
|
| 343 |
public LocalDateTime getCreateTimestamp() {
|
354 |
public LocalDateTime getCreateTimestamp() {
|
| 344 |
return createTimestamp;
|
355 |
return createTimestamp;
|
| 345 |
}
|
356 |
}
|
| 346 |
|
357 |
|
| 347 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
358 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
| Line 354... |
Line 365... |
| 354 |
|
365 |
|
| 355 |
@Override
|
366 |
@Override
|
| 356 |
public String toString() {
|
367 |
public String toString() {
|
| 357 |
return "PendingOrderItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", remark=" + remark
|
368 |
return "PendingOrderItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", remark=" + remark
|
| 358 |
+ ", itemName=" + itemName + ", imgUrl=" + imgUrl + ", quantity=" + quantity + ", sellingPrice="
|
369 |
+ ", itemName=" + itemName + ", imgUrl=" + imgUrl + ", quantity=" + quantity + ", sellingPrice="
|
| - |
|
370 |
+ sellingPrice + ", extendedWarrantyPrice=" + extendedWarrantyPrice + ", pendingOrder="
|
| 359 |
+ sellingPrice + ", pendingOrder=" + pendingOrder + ", status=" + status + ", statusDescription="
|
371 |
+ pendingOrder + ", status=" + status + ", statusDescription="
|
| 360 |
+ statusDescription + ", cancelledTimestamp=" + cancelledTimestamp + ", billedTimestamp="
|
372 |
+ statusDescription + ", cancelledTimestamp=" + cancelledTimestamp + ", billedTimestamp="
|
| 361 |
+ billedTimestamp + ", verifiedTimestamp=" + verifiedTimestamp + ", deliveredTimestamp="
|
373 |
+ billedTimestamp + ", verifiedTimestamp=" + verifiedTimestamp + ", deliveredTimestamp="
|
| 362 |
+ deliveredTimestamp + ", claimedTimestamp=" + claimedTimestamp + ", scheduledDeliveryTime="
|
374 |
+ deliveredTimestamp + ", claimedTimestamp=" + claimedTimestamp + ", scheduledDeliveryTime="
|
| 363 |
+ scheduledDeliveryTime + ", createTimestamp=" + createTimestamp + "]";
|
375 |
+ scheduledDeliveryTime + ", createTimestamp=" + createTimestamp + "]";
|
| 364 |
}
|
376 |
}
|