1 5 package com.nightlabs.ipanema.trade; 6 7 import java.io.Serializable ; 8 9 import com.nightlabs.ipanema.store.Product; 10 11 22 public class OrderItem 23 implements Serializable 24 { 25 29 private String organisationID; 30 31 34 private long orderID; 35 36 39 private int orderItemID; 40 41 44 private Order order; 45 46 49 private Offer offer; 50 51 54 private Product product; 55 56 protected OrderItem() { } 57 58 public OrderItem(Order order, int orderItemID) 59 { 60 if (order == null) 61 throw new NullPointerException ("order must not be null"); 62 63 this.order = order; 64 this.organisationID = order.getOrganisationID(); 65 this.orderID = order.getOrderID(); 66 this.orderItemID = orderItemID; 67 } 68 } 69 | Popular Tags |