01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.gps.device.hibernate.eg;
18:
19: import java.util.List;
20:
21: /**
22: * @author Gavin King
23: */
24: public class User extends Persistent {
25: private String userName;
26:
27: private String password;
28:
29: private String email;
30:
31: private Name name;
32:
33: private List bids;
34:
35: private List auctions;
36:
37: public String getEmail() {
38: return email;
39: }
40:
41: public String getPassword() {
42: return password;
43: }
44:
45: public String getUserName() {
46: return userName;
47: }
48:
49: public void setEmail(String string) {
50: email = string;
51: }
52:
53: public void setPassword(String string) {
54: password = string;
55: }
56:
57: public void setUserName(String string) {
58: userName = string;
59: }
60:
61: public List getAuctions() {
62: return auctions;
63: }
64:
65: public List getBids() {
66: return bids;
67: }
68:
69: public void setAuctions(List list) {
70: auctions = list;
71: }
72:
73: public void setBids(List list) {
74: bids = list;
75: }
76:
77: public String toString() {
78: return userName;
79: }
80:
81: public Name getName() {
82: return name;
83: }
84:
85: public void setName(Name name) {
86: this.name = name;
87: }
88:
89: }
|