KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Address.java,v 1.1 2004/09/26 00:39:43 oneovthafew Exp $
2
package org.hibernate.test.cuk;
3
4 import java.io.Serializable JavaDoc;
5
6 /**
7  * @author gavin
8  */

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

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

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

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

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

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

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

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

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

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

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