1 package org.hibernate.test.map; 3 4 import java.util.HashMap ; 5 import java.util.Map ; 6 7 10 public class User { 11 private String name; 12 private String password; 13 private Map session = new HashMap (); 14 User() {} 15 public User(String n, String pw) { 16 name=n; 17 password = pw; 18 } 19 public String getName() { 20 return name; 21 } 22 public void setName(String name) { 23 this.name = name; 24 } 25 public String getPassword() { 26 return password; 27 } 28 public void setPassword(String password) { 29 this.password = password; 30 } 31 public Map getSession() { 32 return session; 33 } 34 public void setSession(Map session) { 35 this.session = session; 36 } 37 } 38 | Popular Tags |