@Entity public class OrderItem<P extends Product> extends BaseOrderItem implements Identifiable<Long>
amount, finalWeight, lastStatusReason, packagingAmount, paymentContext, promotionNames, quantity, shippingAmount, status, updated| Constructor and Description | 
|---|
OrderItem()  | 
OrderItem(OrderItem item)  | 
OrderItem(Order order,
         P product,
         Amount amount,
         Double quantity)  | 
OrderItem(Order order,
         P product,
         Double amount,
         Double quantity)  | 
OrderItem(String json)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
String | 
getHierarchy()
Maintain a copy of Hierarchy code from  
HierarchialDomainObject.getHierarchy() incase the product is deleted | 
Long | 
getId()  | 
Order | 
getOrder()  | 
P | 
getProduct()
WARNING : After an Order is complete or periodically, ORDER ITEMS product should be nullified if the PRODUCT should be removed over time; since due to REF INTEGRITY it
 will make it difficult to remove PRODUCTS from the SYSTEM. 
 | 
String | 
getSku()  | 
int | 
hashCode()  | 
void | 
setHierarchy(String hierarchy)
Maintain a copy of Hierarchy code from  
HierarchialDomainObject.getHierarchy() incase the product is deleted | 
void | 
setId(Long id)  | 
void | 
setOrder(Order order)  | 
void | 
setProduct(P product)
WARNING : After an Order is complete or periodically, ORDER ITEMS product should be nullified if the PRODUCT should be removed over time; since due to REF INTEGRITY it
 will make it difficult to remove PRODUCTS from the SYSTEM. 
 | 
void | 
setSku(String sku)  | 
String | 
toString()  | 
getAmount, getComments, getFinalWeight, getLastStatusReason, getPackagingAmount, getPaymentContext, getPromotionNames, getQuantity, getShippingAmount, getStatus, getUpdated, setAmount, setComments, setFinalWeight, setLastStatusReason, setPackagingAmount, setPaymentContext, setPromotionNames, setQuantity, setShippingAmount, setStatus, setUpdatedpublic OrderItem()
public OrderItem(String json)
public OrderItem(OrderItem item)
public OrderItem(Order order, P product, Amount amount, Double quantity)
order - as Order to which this belongs @nullable falseproduct - as Product which is the item @nullable falseamount - as Amount for all items ordered @nullable falsequantity - as Double total quantity @nullable false
 PaymentContext is default to PaymentContext.NORMALpublic OrderItem(Order order, P product, Double amount, Double quantity)
order - as Order to which this belongs @nullable falseproduct - as Product which is the item @nullable falseamount - as Double for all items ordered @nullable falsequantity - as Double total quantity @nullable false
 PaymentContext is default to PaymentContext.NORMALpublic Long getId()
getId in interface Identifiable<Long>public void setId(Long id)
setId in interface Identifiable<Long>public Order getOrder()
public void setOrder(Order order)
public P getProduct()
public void setProduct(P product)
public String getSku()
public void setSku(String sku)
public String getHierarchy()
HierarchialDomainObject.getHierarchy() incase the product is deletedpublic void setHierarchy(String hierarchy)
HierarchialDomainObject.getHierarchy() incase the product is deletedpublic boolean equals(Object obj)
equals in class BaseOrderItempublic int hashCode()
hashCode in class BaseOrderItempublic String toString()
toString in class BaseOrderItemCopyright © 2018. All rights reserved.