KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > collection > User


1 //$Id: User.java,v 1.4 2005/02/12 07:27:21 steveebersole Exp $
2
package org.hibernate.test.collection;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.HashMap JavaDoc;
6 import java.util.List JavaDoc;
7 import java.util.Map JavaDoc;
8
9 /**
10  * @author Gavin King
11  */

12 public class User {
13     private String JavaDoc userName;
14     private List JavaDoc permissions = new ArrayList JavaDoc();
15     private List JavaDoc emailAddresses = new ArrayList JavaDoc();
16     private Map JavaDoc sessionData = new HashMap JavaDoc();
17
18     User() {}
19     public User(String JavaDoc name) {
20         userName = name;
21     }
22     public List JavaDoc getPermissions() {
23         return permissions;
24     }
25     public void setPermissions(List JavaDoc permissions) {
26         this.permissions = permissions;
27     }
28     public String JavaDoc getUserName() {
29         return userName;
30     }
31     public void setUserName(String JavaDoc userName) {
32         this.userName = userName;
33     }
34     public List JavaDoc getEmailAddresses() {
35         return emailAddresses;
36     }
37     public void setEmailAddresses(List JavaDoc emailAddresses) {
38         this.emailAddresses = emailAddresses;
39     }
40     public Map JavaDoc getSessionData() {
41         return sessionData;
42     }
43     public void setSessionData(Map JavaDoc sessionData) {
44         this.sessionData = sessionData;
45     }
46 }
47
Popular Tags