KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > partmappersistence > data > HibernateParticipant


1 /*
2  * Shark Hibernate PartMapPersistence - Copyright Open Wide
3  */

4
5 package org.enhydra.shark.partmappersistence.data;
6
7 import java.util.ArrayList JavaDoc;
8 import java.util.List JavaDoc;
9
10 /**
11  * Simple POJO class, part of the participant mapping model
12  *
13  * @author Vladislav Pernin
14  */

15 public class HibernateParticipant {
16
17     protected String JavaDoc participantId;
18     protected int id;
19     protected List JavaDoc normalUsers = new ArrayList JavaDoc();
20     protected List JavaDoc groupUsers = new ArrayList JavaDoc();
21     
22     public HibernateParticipant() {
23     }
24
25     public int getId() {
26         return id;
27     }
28
29     public void setId(int id) {
30         this.id = id;
31     }
32
33     public String JavaDoc getParticipantId() {
34         return participantId;
35     }
36
37     public void setParticipantId(String JavaDoc participantId) {
38         this.participantId = participantId;
39     }
40     
41     public List JavaDoc getGroupUsers() {
42         return groupUsers;
43     }
44
45     public void setGroupUsers(List JavaDoc groupUsers) {
46         this.groupUsers = groupUsers;
47     }
48
49     public List JavaDoc getNormalUsers() {
50         return normalUsers;
51     }
52
53     public void setNormalUsers(List JavaDoc normalUsers) {
54         this.normalUsers = normalUsers;
55     }
56     
57     public String JavaDoc toString() {
58         String JavaDoc retVal = "";
59         retVal += "\nId = "+this.id;
60         retVal += "\nparticipantId = "+this.participantId;
61         return retVal;
62     }
63 }
Popular Tags