KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > auction > User


1 //$Id: User.java,v 1.1 2004/06/03 16:30:01 steveebersole Exp $
2
package org.hibernate.auction;
3
4 import java.util.List JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class User extends Persistent {
10     private String JavaDoc userName;
11     private String JavaDoc password;
12     private String JavaDoc email;
13     private Name name;
14     private List JavaDoc bids;
15     private List JavaDoc auctions;
16     
17     public String JavaDoc getEmail() {
18         return email;
19     }
20
21     public String JavaDoc getPassword() {
22         return password;
23     }
24
25     public String JavaDoc getUserName() {
26         return userName;
27     }
28
29     public void setEmail(String JavaDoc string) {
30         email = string;
31     }
32
33     public void setPassword(String JavaDoc string) {
34         password = string;
35     }
36
37     public void setUserName(String JavaDoc string) {
38         userName = string;
39     }
40
41     public List JavaDoc getAuctions() {
42         return auctions;
43     }
44
45     public List JavaDoc getBids() {
46         return bids;
47     }
48
49     public void setAuctions(List JavaDoc list) {
50         auctions = list;
51     }
52
53     public void setBids(List JavaDoc list) {
54         bids = list;
55     }
56     
57     public String JavaDoc 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