import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jshopcore.model.basket.AddableBasketItem;
import org.mxchange.jshopcore.model.product.GenericProduct;
import org.mxchange.jshopcore.model.product.Product;
*/
@Entity (name = "basket_items")
@Table (name = "basket_items")
+@SuppressWarnings ("PersistenceUnitPresent")
public class BasketItem extends BaseItem implements AddableBasketItem {
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 52_749_158_492_581_578L;
/**
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
/**
* A product category
*/
@Entity (name = "category")
@Table (name = "category")
+@SuppressWarnings ("PersistenceUnitPresent")
public class ProductCategory implements Category {
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 21_458_945_712_659L;
/**
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 19_728_938_459_834L;
/**
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jshopcore.model.basket.AddableBasketItem;
import org.mxchange.jshopcore.model.basket.items.BaseItem;
import org.mxchange.jshopcore.model.product.GenericProduct;
@Index (name = "product", columnList = "order_product_id")
}
)
+@SuppressWarnings ("PersistenceUnitPresent")
public class OrderItem extends BaseItem implements AddableBasketItem {
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 44_189_562_738_723_581L;
/**
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jshopcore.model.category.Category;
import org.mxchange.jshopcore.model.category.ProductCategory;
*/
@Entity (name = "products")
@Table (name = "products")
+@SuppressWarnings ("PersistenceUnitPresent")
public class GenericProduct implements Product {
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 54_578_571_769_283L;
/**