1 package org.hibernate.test.usercollection; 3 4 import java.util.HashMap ; 5 import java.util.List ; 6 import java.util.Map ; 7 8 11 public class User { 12 private String userName; 13 private IMyList emailAddresses = new MyList(); 14 private Map sessionData = new HashMap (); 15 16 User() {} 17 public User(String name) { 18 userName = name; 19 } 20 21 public String getUserName() { 22 return userName; 23 } 24 public void setUserName(String userName) { 25 this.userName = userName; 26 } 27 public List getEmailAddresses() { 28 return emailAddresses; 29 } 30 public void setEmailAddresses(IMyList emailAddresses) { 31 this.emailAddresses = emailAddresses; 32 } 33 public Map getSessionData() { 34 return sessionData; 35 } 36 public void setSessionData(Map sessionData) { 37 this.sessionData = sessionData; 38 } 39 } 40 | Popular Tags |