KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class User {
11     private String JavaDoc name;
12     private String JavaDoc password;
13     private Map JavaDoc session = new HashMap JavaDoc();
14     User() {}
15     public User(String JavaDoc n, String JavaDoc pw) {
16         name=n;
17         password = pw;
18     }
19     public String JavaDoc getName() {
20         return name;
21     }
22     public void setName(String JavaDoc name) {
23         this.name = name;
24     }
25     public String JavaDoc getPassword() {
26         return password;
27     }
28     public void setPassword(String JavaDoc password) {
29         this.password = password;
30     }
31     public Map JavaDoc getSession() {
32         return session;
33     }
34     public void setSession(Map JavaDoc session) {
35         this.session = session;
36     }
37 }
38
Popular Tags