KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Person.java,v 1.4 2005/06/19 02:01:04 oneovthafew Exp $
2
package org.hibernate.test.join;
3
4
5 /**
6  * @author Gavin King
7  */

8 public class Person {
9     private long id;
10     private String JavaDoc name;
11     private String JavaDoc address;
12     private String JavaDoc zip;
13     private String JavaDoc country;
14     private char sex;
15     
16     /**
17      * @return Returns the sex.
18      */

19     public char getSex() {
20         return sex;
21     }
22     /**
23      * @param sex The sex to set.
24      */

25     public void setSex(char sex) {
26         this.sex = sex;
27     }
28     /**
29      * @return Returns the id.
30      */

31     public long getId() {
32         return id;
33     }
34     /**
35      * @param id The id to set.
36      */

37     public void setId(long id) {
38         this.id = id;
39     }
40     /**
41      * @return Returns the identity.
42      */

43     public String JavaDoc getName() {
44         return name;
45     }
46     /**
47      * @param identity The identity to set.
48      */

49     public void setName(String JavaDoc identity) {
50         this.name = identity;
51     }
52     public String JavaDoc getSpecies() {
53         return null;
54     }
55
56     /**
57      * @return Returns the country.
58      */

59     public String JavaDoc getCountry() {
60         return country;
61     }
62     /**
63      * @param country The country to set.
64      */

65     public void setCountry(String JavaDoc country) {
66         this.country = country;
67     }
68     /**
69      * @return Returns the zip.
70      */

71     public String JavaDoc getZip() {
72         return zip;
73     }
74     /**
75      * @param zip The zip to set.
76      */

77     public void setZip(String JavaDoc zip) {
78         this.zip = zip;
79     }
80     /**
81      * @param address The address to set.
82      */

83     public void setAddress(String JavaDoc address) {
84         this.address = address;
85     }
86     
87     public String JavaDoc getAddress() {
88         return address;
89     }
90 }
91
Popular Tags