KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > bo > Useraccount


1 package johnmammen.betterpetshop.bo;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.Set JavaDoc;
5 import org.apache.commons.lang.builder.ToStringBuilder;
6 import org.apache.tapestry.pets.domain.model.*;
7
8
9 /**
10  * @hibernate.class
11  * table="useraccount"
12  *
13 */

14 public class Useraccount implements Serializable JavaDoc, ICustomer {
15
16     /** identifier field */
17     private String JavaDoc userid;
18
19     /** nullable persistent field */
20     private String JavaDoc pwd;
21
22     /** nullable persistent field */
23     private String JavaDoc email;
24
25     /** nullable persistent field */
26     private String JavaDoc firstname;
27
28     /** nullable persistent field */
29     private String JavaDoc lastname;
30
31     /** nullable persistent field */
32     private String JavaDoc status;
33
34     /** nullable persistent field */
35     private String JavaDoc addr1;
36
37     /** nullable persistent field */
38     private String JavaDoc addr2;
39
40     /** nullable persistent field */
41     private String JavaDoc city;
42
43     /** nullable persistent field */
44     private String JavaDoc state;
45
46     /** nullable persistent field */
47     private String JavaDoc zip;
48
49     /** nullable persistent field */
50     private String JavaDoc country;
51
52     /** nullable persistent field */
53     private String JavaDoc phone;
54
55     /** nullable persistent field */
56     private String JavaDoc langpref;
57
58     /** nullable persistent field */
59     private Integer JavaDoc mylistopt;
60
61     /** nullable persistent field */
62     private Integer JavaDoc banneropt;
63
64     /** nullable persistent field */
65     private johnmammen.betterpetshop.bo.Bannerdata bannerdata;
66
67     /** persistent field */
68     private Set JavaDoc orders;
69
70     /** full constructor */
71     public Useraccount(String JavaDoc userid, String JavaDoc pwd, String JavaDoc email, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc status, String JavaDoc addr1, String JavaDoc addr2, String JavaDoc city, String JavaDoc state, String JavaDoc zip, String JavaDoc country, String JavaDoc phone, String JavaDoc langpref, Integer JavaDoc mylistopt, Integer JavaDoc banneropt, johnmammen.betterpetshop.bo.Bannerdata bannerdata, Set JavaDoc orders) {
72         this.userid = userid;
73         this.pwd = pwd;
74         this.email = email;
75         this.firstname = firstname;
76         this.lastname = lastname;
77         this.status = status;
78         this.addr1 = addr1;
79         this.addr2 = addr2;
80         this.city = city;
81         this.state = state;
82         this.zip = zip;
83         this.country = country;
84         this.phone = phone;
85         this.langpref = langpref;
86         this.mylistopt = mylistopt;
87         this.banneropt = banneropt;
88         this.bannerdata = bannerdata;
89         this.orders = orders;
90     }
91
92     /** default constructor */
93     public Useraccount() {
94     }
95
96     /** minimal constructor */
97     public Useraccount(String JavaDoc userid, Set JavaDoc orders) {
98         this.userid = userid;
99         this.orders = orders;
100     }
101
102     /**
103      * @hibernate.id
104      * generator-class="assigned"
105      * type="java.lang.String"
106      * column="userid"
107      *
108      */

109     public String JavaDoc getUserid() {
110         return this.userid;
111     }
112
113     public void setUserid(String JavaDoc userid) {
114         this.userid = userid;
115     }
116
117     /**
118      * @hibernate.property
119      * column="pwd"
120      * length="25"
121      *
122      */

123     public String JavaDoc getPwd() {
124         return this.pwd;
125     }
126
127     public void setPwd(String JavaDoc pwd) {
128         this.pwd = pwd;
129     }
130
131     /**
132      * @hibernate.property
133      * column="email"
134      * length="80"
135      *
136      */

137     public String JavaDoc getEmail() {
138         return this.email;
139     }
140
141     public void setEmail(String JavaDoc email) {
142         this.email = email;
143     }
144
145     /**
146      * @hibernate.property
147      * column="firstname"
148      * length="80"
149      *
150      */

151     public String JavaDoc getFirstname() {
152         return this.firstname;
153     }
154
155     public void setFirstname(String JavaDoc firstname) {
156         this.firstname = firstname;
157     }
158
159     /**
160      * @hibernate.property
161      * column="lastname"
162      * length="80"
163      *
164      */

165     public String JavaDoc getLastname() {
166         return this.lastname;
167     }
168
169     public void setLastname(String JavaDoc lastname) {
170         this.lastname = lastname;
171     }
172
173     /**
174      * @hibernate.property
175      * column="status"
176      * length="2"
177      *
178      */

179     public String JavaDoc getStatus() {
180         return this.status;
181     }
182
183     public void setStatus(String JavaDoc status) {
184         this.status = status;
185     }
186
187     /**
188      * @hibernate.property
189      * column="addr1"
190      * length="80"
191      *
192      */

193     public String JavaDoc getAddr1() {
194         return this.addr1;
195     }
196
197     public void setAddr1(String JavaDoc addr1) {
198         this.addr1 = addr1;
199     }
200
201     /**
202      * @hibernate.property
203      * column="addr2"
204      * length="40"
205      *
206      */

207     public String JavaDoc getAddr2() {
208         return this.addr2;
209     }
210
211     public void setAddr2(String JavaDoc addr2) {
212         this.addr2 = addr2;
213     }
214
215     /**
216      * @hibernate.property
217      * column="city"
218      * length="80"
219      *
220      */

221     public String JavaDoc getCity() {
222         return this.city;
223     }
224
225     public void setCity(String JavaDoc city) {
226         this.city = city;
227     }
228
229     /**
230      * @hibernate.property
231      * column="state"
232      * length="80"
233      *
234      */

235     public String JavaDoc getState() {
236         return this.state;
237     }
238
239     public void setState(String JavaDoc state) {
240         this.state = state;
241     }
242
243     /**
244      * @hibernate.property
245      * column="zip"
246      * length="20"
247      *
248      */

249     public String JavaDoc getZip() {
250         return this.zip;
251     }
252
253     public void setZip(String JavaDoc zip) {
254         this.zip = zip;
255     }
256
257     /**
258      * @hibernate.property
259      * column="country"
260      * length="20"
261      *
262      */

263     public String JavaDoc getCountry() {
264         return this.country;
265     }
266
267     public void setCountry(String JavaDoc country) {
268         this.country = country;
269     }
270
271     /**
272      * @hibernate.property
273      * column="phone"
274      * length="80"
275      *
276      */

277     public String JavaDoc getPhone() {
278         return this.phone;
279     }
280
281     public void setPhone(String JavaDoc phone) {
282         this.phone = phone;
283     }
284
285     /**
286      * @hibernate.property
287      * column="langpref"
288      * length="80"
289      *
290      */

291     public String JavaDoc getLangpref() {
292         return this.langpref;
293     }
294
295     public void setLangpref(String JavaDoc langpref) {
296         this.langpref = langpref;
297     }
298
299     /**
300      * @hibernate.property
301      * column="mylistopt"
302      * length="11"
303      *
304      */

305     public Integer JavaDoc getMylistopt() {
306         return this.mylistopt;
307     }
308
309     public void setMylistopt(Integer JavaDoc mylistopt) {
310         this.mylistopt = mylistopt;
311     }
312
313     /**
314      * @hibernate.property
315      * column="banneropt"
316      * length="11"
317      *
318      */

319     public Integer JavaDoc getBanneropt() {
320         return this.banneropt;
321     }
322
323     public void setBanneropt(Integer JavaDoc banneropt) {
324         this.banneropt = banneropt;
325     }
326
327     /**
328      * @hibernate.many-to-one
329      * @hibernate.column name="favcategory"
330      *
331      */

332     public johnmammen.betterpetshop.bo.Bannerdata getBannerdata() {
333         return this.bannerdata;
334     }
335
336     public void setBannerdata(johnmammen.betterpetshop.bo.Bannerdata bannerdata) {
337         this.bannerdata = bannerdata;
338     }
339
340     /**
341      * @hibernate.set
342      * lazy="true"
343      * inverse="true"
344      * @hibernate.collection-key
345      * column="userid"
346      * @hibernate.collection-one-to-many
347      * class="johnmammen.betterpetshop.bo.Order"
348      *
349      */

350     public Set JavaDoc getOrders() {
351         return this.orders;
352     }
353
354     public void setOrders(Set JavaDoc orders) {
355         this.orders = orders;
356     }
357
358     public String JavaDoc toString() {
359         return new ToStringBuilder(this)
360             .append("userid", getUserid())
361             .toString();
362     }
363
364 }
365
Popular Tags