Example #1
0
 /** @return Returns primaryKey.getItem() */
 @Transient
 public Item getItem() {
   return primaryKey.getItem();
 }
Example #2
0
 /** @return Returns primaryKey.getCart() */
 @Transient
 public Cart getCart() {
   return primaryKey.getCart();
 }
Example #3
0
 /**
  * Standard constructor with mandatory fields
  *
  * @param cart required cart
  * @param item required item
  */
 public CartItem(Cart cart, Item item) {
   Assert.notNull(cart, "cart is required");
   Assert.notNull(item, "item is required");
   primaryKey.setCart(cart);
   primaryKey.setItem(item);
 }