1 package org.hibernate.auction; 3 4 import java.util.List ; 5 6 9 public class User extends Persistent { 10 private String userName; 11 private String password; 12 private String email; 13 private Name name; 14 private List bids; 15 private List auctions; 16 17 public String getEmail() { 18 return email; 19 } 20 21 public String getPassword() { 22 return password; 23 } 24 25 public String getUserName() { 26 return userName; 27 } 28 29 public void setEmail(String string) { 30 email = string; 31 } 32 33 public void setPassword(String string) { 34 password = string; 35 } 36 37 public void setUserName(String string) { 38 userName = string; 39 } 40 41 public List getAuctions() { 42 return auctions; 43 } 44 45 public List getBids() { 46 return bids; 47 } 48 49 public void setAuctions(List list) { 50 auctions = list; 51 } 52 53 public void setBids(List list) { 54 bids = list; 55 } 56 57 public String toString() { 58 return userName; 59 } 60 61 public Name getName() { 62 return name; 63 } 64 65 public void setName(Name name) { 66 this.name = name; 67 } 68 69 } 70 | Popular Tags |