KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id$
2
package org.hibernate.test.usercollection;
3
4 import java.util.HashMap JavaDoc;
5 import java.util.List JavaDoc;
6 import java.util.Map JavaDoc;
7
8 /**
9  * @author Gavin King
10  */

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