KickJava   Java API By Example, From Geeks To Geeks.

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


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

9 public class User {
10     private String JavaDoc userName;
11     private String JavaDoc password;
12     private Person person;
13     private Date JavaDoc lastModified;
14     User() {}
15     public User(String JavaDoc id, String JavaDoc pw, Person person) {
16         this.userName = id;
17         this.password = pw;
18         this.person = person;
19     }
20     public Date JavaDoc getLastModified() {
21         return lastModified;
22     }
23     public void setLastModified(Date JavaDoc lastModified) {
24         this.lastModified = lastModified;
25     }
26     public String JavaDoc getPassword() {
27         return password;
28     }
29     public void setPassword(String JavaDoc password) {
30         this.password = password;
31     }
32     public Person getPerson() {
33         return person;
34     }
35     public void setPerson(Person person) {
36         this.person = person;
37     }
38     public String JavaDoc getUserName() {
39         return userName;
40     }
41     public void setUserName(String JavaDoc userName) {
42         this.userName = userName;
43     }
44 }
45
Popular Tags