KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > propertyref > Person


1 //$Id: Person.java,v 1.2 2004/08/21 08:43:20 oneovthafew Exp $
2
package org.hibernate.test.propertyref;
3
4 import java.util.HashSet JavaDoc;
5 import java.util.Set JavaDoc;
6
7 /**
8  * @author gavin
9  */

10 public class Person {
11     private Long JavaDoc id;
12     private String JavaDoc name;
13     private Address address;
14     private String JavaDoc userId;
15     private Set JavaDoc accounts = new HashSet JavaDoc();
16     /**
17      * @return Returns the userId.
18      */

19     public String JavaDoc getUserId() {
20         return userId;
21     }
22     /**
23      * @param userId The userId to set.
24      */

25     public void setUserId(String JavaDoc userId) {
26         this.userId = userId;
27     }
28     /**
29      * @return Returns the address.
30      */

31     public Address getAddress() {
32         return address;
33     }
34     /**
35      * @param address The address to set.
36      */

37     public void setAddress(Address address) {
38         this.address = address;
39     }
40     /**
41      * @return Returns the id.
42      */

43     public Long JavaDoc getId() {
44         return id;
45     }
46     /**
47      * @param id The id to set.
48      */

49     public void setId(Long JavaDoc id) {
50         this.id = id;
51     }
52     /**
53      * @return Returns the name.
54      */

55     public String JavaDoc getName() {
56         return name;
57     }
58     /**
59      * @param name The name to set.
60      */

61     public void setName(String JavaDoc name) {
62         this.name = name;
63     }
64     /**
65      * @return Returns the accounts.
66      */

67     public Set JavaDoc getAccounts() {
68         return accounts;
69     }
70     /**
71      * @param accounts The accounts to set.
72      */

73     public void setAccounts(Set JavaDoc accounts) {
74         this.accounts = accounts;
75     }
76 }
77
Popular Tags