KickJava   Java API By Example, From Geeks To Geeks.

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


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 Category implements Serializable JavaDoc {
15
16     @Column(name = "catid")
17     String JavaDoc categoryId;
18
19     @Column(name = "name")
20     String JavaDoc name;
21
22     @Column(name = "descn")
23     String JavaDoc description;
24
25     public String JavaDoc getCategoryId() {
26         return categoryId;
27     }
28
29     public void setCategoryId(String JavaDoc categoryId) {
30         this.categoryId = categoryId;
31     }
32
33     public String JavaDoc getName() {
34         return name;
35     }
36
37     public void setName(String JavaDoc name) {
38         this.name = name;
39     }
40
41     public String JavaDoc getDescription() {
42         return description;
43     }
44
45     public void setDescription(String JavaDoc description) {
46         this.description = description;
47     }
48 }
49
Popular Tags