KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Person.java,v 1.1 2004/08/18 09:18:34 oneovthafew Exp $
2
package org.hibernate.test.discriminator;
3
4
5 /**
6  * @author Gavin King
7  */

8 public class Person {
9     private long id;
10     private String JavaDoc name;
11     private char sex;
12     private Address address = new Address();
13     /**
14      * @return Returns the address.
15      */

16     public Address getAddress() {
17         return address;
18     }
19
20     public void setAddress(String JavaDoc string) {
21         this.address.address = string;
22     }
23
24     public void setZip(String JavaDoc string) {
25         this.address.zip = string;
26     }
27
28     public void setCountry(String JavaDoc string) {
29         this.address.country = string;
30     }
31
32     
33     /**
34      * @return Returns the sex.
35      */

36     public char getSex() {
37         return sex;
38     }
39     /**
40      * @param sex The sex to set.
41      */

42     public void setSex(char sex) {
43         this.sex = sex;
44     }
45     /**
46      * @return Returns the id.
47      */

48     public long getId() {
49         return id;
50     }
51     /**
52      * @param id The id to set.
53      */

54     public void setId(long id) {
55         this.id = id;
56     }
57     /**
58      * @return Returns the identity.
59      */

60     public String JavaDoc getName() {
61         return name;
62     }
63     /**
64      * @param identity The identity to set.
65      */

66     public void setName(String JavaDoc identity) {
67         this.name = identity;
68     }
69
70 }
71
Popular Tags