1 7 package jfox.test.ejb3.entity; 8 9 import javax.persistence.Column; 10 11 14 public class LineItem { 15 @Column(name="id") 16 Integer id; 17 18 @Column(name="product") 19 String product; 20 21 @Column(name = "price") 22 Double price; 23 24 @Column(name="quantity") 25 int quantity; 26 27 @Column(name="orderid") 28 int orderId; 29 30 31 public Integer getId() { 32 return id; 33 } 34 35 public void setId(Integer id) { 36 this.id = id; 37 } 38 39 public int getOrderId() { 40 return orderId; 41 } 42 43 public void setOrderId(int orderId) { 44 this.orderId = orderId; 45 } 46 47 public Double getPrice() { 48 return price; 49 } 50 51 public void setPrice(Double price) { 52 this.price = price; 53 } 54 55 public String getProduct() { 56 return product; 57 } 58 59 public void setProduct(String product) { 60 this.product = product; 61 } 62 63 public int getQuantity() { 64 return quantity; 65 } 66 67 public void setQuantity(int quantity) { 68 this.quantity = quantity; 69 } 70 } 71 | Popular Tags |