KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > petstore > entity > Product


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 org.jfox.petstore.entity;
8
9 import java.io.Serializable JavaDoc;
10 import javax.persistence.Column;
11 import javax.persistence.Entity;
12
13 @Entity
14 public class Product implements Serializable JavaDoc {
15
16     @Column(name = "productid")
17     String JavaDoc productId;
18
19     @Column(name = "category")
20     String JavaDoc categoryId;
21
22     @Column(name = "name")
23     String JavaDoc name;
24
25     @Column(name = "descn")
26     String JavaDoc description;
27
28     public String JavaDoc getCategoryId() {
29         return categoryId;
30     }
31
32     public void setCategoryId(String JavaDoc categoryId) {
33         this.categoryId = categoryId;
34     }
35
36     public String JavaDoc getDescription() {
37         return description;
38     }
39
40     public void setDescription(String JavaDoc description) {
41         this.description = description;
42     }
43
44     public String JavaDoc getName() {
45         return name;
46     }
47
48     public void setName(String JavaDoc name) {
49         this.name = name;
50     }
51
52     public String JavaDoc getProductId() {
53         return productId;
54     }
55
56     public void setProductId(String JavaDoc productId) {
57         this.productId = productId;
58     }
59 }
60
Popular Tags