1 package org.hibernate.test.component; 3 4 import java.util.Date ; 5 6 9 public class User { 10 private String userName; 11 private String password; 12 private Person person; 13 private Date lastModified; 14 User() {} 15 public User(String id, String pw, Person person) { 16 this.userName = id; 17 this.password = pw; 18 this.person = person; 19 } 20 public Date getLastModified() { 21 return lastModified; 22 } 23 public void setLastModified(Date lastModified) { 24 this.lastModified = lastModified; 25 } 26 public String getPassword() { 27 return password; 28 } 29 public void setPassword(String 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 getUserName() { 39 return userName; 40 } 41 public void setUserName(String userName) { 42 this.userName = userName; 43 } 44 } 45 | Popular Tags |