KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > instancepersistence > data > HibernateActivityState


1 /*
2  * Shark Hibernate persistent layer - Open Wide
3  */

4
5 package org.enhydra.shark.instancepersistence.data;
6
7 import org.enhydra.shark.utilities.hibernate.HibernateGeneric;
8 import org.enhydra.shark.utilities.hibernate.HibernateObjectUtil;
9
10 /**
11  * Simple Hibernate POJO class
12  * @author Vladislav Pernin
13  */

14 public class HibernateActivityState extends HibernateObjectUtil implements HibernateGeneric {
15     
16     private String JavaDoc keyValue;
17     private String JavaDoc name;
18     
19     private int dbId = -1;
20     
21     public int getDbId() {
22         return dbId;
23     }
24
25     public void setDbId(int dbId) {
26         this.dbId = dbId;
27     }
28     
29     public HibernateActivityState() {
30     }
31
32     public String JavaDoc getKeyValue() {
33         return keyValue;
34     }
35
36
37     public String JavaDoc getName() {
38         return name;
39     }
40
41     
42     public void setKeyValue(String JavaDoc string) {
43         keyValue = string;
44     }
45
46
47     public void setName(String JavaDoc string) {
48         name = string;
49     }
50
51 }
52
53
Popular Tags