KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfox > test > ejb3 > entity > LineItem


1 /*
2  * JFox - The most lightweight Java EE Application Server!
3  * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
4  *
5  * JFox is licenced and re-distributable under GNU LGPL.
6  */

7 package jfox.test.ejb3.entity;
8
9 import javax.persistence.Column;
10
11 /**
12  * @author <a HREF="mailto:jfox.young@gmail.com">Young Yang</a>
13  */

14 public class LineItem {
15     @Column(name="id")
16     Integer JavaDoc id;
17
18     @Column(name="product")
19     String JavaDoc product;
20
21     @Column(name = "price")
22     Double JavaDoc price;
23
24     @Column(name="quantity")
25     int quantity;
26
27     @Column(name="orderid")
28     int orderId;
29
30
31     public Integer JavaDoc getId() {
32         return id;
33     }
34
35     public void setId(Integer JavaDoc 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 JavaDoc getPrice() {
48         return price;
49     }
50
51     public void setPrice(Double JavaDoc price) {
52         this.price = price;
53     }
54
55     public String JavaDoc getProduct() {
56         return product;
57     }
58
59     public void setProduct(String JavaDoc 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