KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > instancepersistence > HibernateProcessRequester


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

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

16 public class HibernateProcessRequester extends HibernateObjectUtil implements HibernateGeneric {
17     
18     private String JavaDoc idPro;
19     private String JavaDoc actRequester;
20     private String JavaDoc resRequester;
21     
22     private int dbId = -1;
23     
24     public int getDbId() {
25         return dbId;
26     }
27
28     public void setDbId(int dbId) {
29         this.dbId = dbId;
30     }
31
32     public void setId(String JavaDoc id) {
33         this.idPro = id;
34     }
35
36     public String JavaDoc getId() {
37         return idPro;
38     }
39     
40     public String JavaDoc getActRequester() {
41         return actRequester;
42     }
43
44     public void setActRequester(String JavaDoc actRequester) {
45         this.actRequester = actRequester;
46     }
47
48     public String JavaDoc getResRequester() {
49         return resRequester;
50     }
51
52     public void setResRequester(String JavaDoc resRequester) {
53         this.resRequester = resRequester;
54     }
55
56     public String JavaDoc toString(){
57         StringBuffer JavaDoc strBuffer = new StringBuffer JavaDoc();
58         strBuffer.append("idDB = " + this.dbId + "\n");
59         strBuffer.append("id = " + this.idPro + "\n");
60         strBuffer.append("actRequester = " + this.actRequester + "\n");
61         strBuffer.append("resRequester = " + this.resRequester + "\n");
62         return strBuffer.toString();
63         
64     }
65 }
66
Popular Tags