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