KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Address.java,v 1.1 2004/08/20 07:54:48 oneovthafew Exp $
2
package org.hibernate.test.propertyref;
3
4 /**
5  * @author gavin
6  */

7 public class Address {
8     private Long JavaDoc id;
9     private String JavaDoc address;
10     private String JavaDoc zip;
11     private String JavaDoc country;
12     private Person person;
13     /**
14      * @return Returns the id.
15      */

16     public Long JavaDoc getId() {
17         return id;
18     }
19     /**
20      * @param id The id to set.
21      */

22     public void setId(Long JavaDoc id) {
23         this.id = id;
24     }
25     /**
26      * @return Returns the person.
27      */

28     public Person getPerson() {
29         return person;
30     }
31     /**
32      * @param person The person to set.
33      */

34     public void setPerson(Person person) {
35         this.person = person;
36     }
37     /**
38      * @return Returns the address.
39      */

40     public String JavaDoc getAddress() {
41         return address;
42     }
43     /**
44      * @param address The address to set.
45      */

46     public void setAddress(String JavaDoc address) {
47         this.address = address;
48     }
49     /**
50      * @return Returns the country.
51      */

52     public String JavaDoc getCountry() {
53         return country;
54     }
55     /**
56      * @param country The country to set.
57      */

58     public void setCountry(String JavaDoc country) {
59         this.country = country;
60     }
61     /**
62      * @return Returns the zip.
63      */

64     public String JavaDoc getZip() {
65         return zip;
66     }
67     /**
68      * @param zip The zip to set.
69      */

70     public void setZip(String JavaDoc zip) {
71         this.zip = zip;
72     }
73 }
74
Popular Tags