1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.oness.party.model.contact.bo;
17
18
19 /***
20 * Postal address
21 *
22 * @hibernate.subclass discriminator-value="POSTAL"
23 *
24 * @author Carlos Sanchez
25 * @version $Revision: 1.1 $
26 */
27 public class PostalAddress extends ContactInfo {
28
29 private String addressee;
30
31 private String address;
32
33 private String city;
34
35 private String zip;
36
37 private String state;
38
39 private Country country;
40
41 public void setState(String state) {
42 this.state = state;
43 }
44
45 /***
46 * @hibernate.property
47 *
48 * @return
49 */
50 public String getState() {
51 return state;
52 }
53
54 public void setZip(String zip) {
55 this.zip = zip;
56 }
57
58 /***
59 * @hibernate.property
60 *
61 * @return
62 */
63 public String getZip() {
64 return zip;
65 }
66
67 public void setAddressee(String addressee) {
68 this.addressee = addressee;
69 }
70
71 /***
72 * @hibernate.property
73 *
74 * @return
75 */
76 public String getAddressee() {
77 return addressee;
78 }
79
80 public void setAddress(String address) {
81 this.address = address;
82 }
83
84 /***
85 * @hibernate.property
86 *
87 * @return
88 */
89 public String getAddress() {
90 return address;
91 }
92
93 public void setCity(String city) {
94 this.city = city;
95 }
96
97 /***
98 * @hibernate.property
99 *
100 * @return
101 */
102 public String getCity() {
103 return city;
104 }
105
106 /***
107 * @param country The country to set.
108 */
109 public void setCountry(Country country) {
110 this.country = country;
111 }
112
113 /***
114 * @hibernate.many-to-one
115 *
116 * @return Returns the country.
117 */
118 public Country getCountry() {
119 return country;
120 }
121
122 /***
123 * @see java.lang.Object#clone()
124 */
125 public Object clone() {
126 PostalAddress o = (PostalAddress) super.clone();
127 o.setCountry((Country) o.getCountry().clone());
128 return o;
129 }
130 }