1 package test.hibernate; 2 12 public class LineItem extends Persistent { 13 14 private Order order; 15 private Product product; 16 private int quantity; 17 18 21 public LineItem() { 22 super(); 23 } 24 25 34 public Order getOrder() { 35 return order; 36 } 37 38 42 public void setOrder(Order order) { 43 this.order = order; 44 } 45 46 54 public int getQuantity() { 55 return quantity; 56 } 57 58 62 public void setQuantity(int quantity) { 63 this.quantity = quantity; 64 } 65 66 73 public Product getProduct() { 74 return product; 75 } 76 77 81 public void setProduct(Product product) { 82 this.product = product; 83 } 84 85 } 86 | Popular Tags |