KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > eventaudit > data > HibernateEventType


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

4
5 package org.enhydra.shark.eventaudit.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 HibernateEventType extends HibernateObjectUtil implements HibernateGeneric {
15     private String JavaDoc keyValue;
16     private String JavaDoc name;
17     
18     private int dbId = -1;
19     
20     public int getDbId() {
21         return dbId;
22     }
23
24     public void setDbId(int dbId) {
25         this.dbId = dbId;
26     }
27     
28     public HibernateEventType() {
29     }
30
31     public String JavaDoc getKeyValue() {
32         return keyValue;
33     }
34
35     public String JavaDoc getName() {
36         return name;
37     }
38
39     public void setKeyValue(String JavaDoc string) {
40         keyValue = string;
41     }
42
43     public void setName(String JavaDoc string) {
44         name = string;
45     }
46
47 }
48
49
Popular Tags