1 | public class Address implements Serializable {↵ | | 1 | public class Address ↵
|
2 | private Long id↵ | | 2 | {↵
|
3 | ;↵ | | 3 | private String street;↵
|
4 | private String address;↵ | | 4 | private String city;↵
|
5 | private String zip;↵ | | 5 | private String postalCode;↵
|
6 | private String country;↵ | | 6 | private String country;↵
|
7 | private Person person;↵ | | 7 | private ↵
|
8 | /**↵ | | |
|
9 | * @return Returns the id.↵ | | |
|
10 | */↵ | | 8 | StateProvince stateProvince;↵
|
|
11 | public Long getId() {↵ | | 9 | public String getStreet() {↵
|
12 | return id;↵ | | 10 | return ↵
|
13 | }↵ | | |
|
14 | /**↵ | | |
|
15 | * @param id The id to set.↵ | | 11 | street;↵
|
16 | */↵ | | 12 | }↵
|
|
17 | public void setId(Long id) {↵ | | 13 | public void set↵
|
18 | this.id = id;↵ | | |
|
19 | }↵ | | |
|
20 | /**↵ | | |
|
21 | * @return Returns the person.↵ | | |
|
22 | */↵ | | |
|
23 | public Person getPerson() {↵ | | |
|
24 | return person;↵ | | |
|
25 | }↵ | | |
|
26 | /**↵ | | |
|
27 | * @param person The person to set.↵ | | |
|
28 | */↵ | | |
|
29 | public void setPerson(Person person) {↵ | | |
|
30 | this.person = person;↵ | | |
|
31 | }↵ | | |
|
32 | /**↵ | | |
|
33 | * @return Returns the address.↵ | | |
|
34 | */↵ | | 14 | Street(String street) {↵
|
| | | 15 | this.street = street;↵
|
| | | 16 | }↵
|
|
| | | 17 | public String getCity() {↵
|
| | | 18 | return city;↵
|
| | | 19 | }↵
|
|
| | | 20 | public void setCity(String city) {↵
|
| | | 21 | this.city = city;↵
|
| | | 22 | }↵
|
|
35 | public String getAddress() {↵ | | 23 | public String getPostalCode() {↵
|
36 | return address;↵ | | 24 | return ↵
|
37 | }↵ | | |
|
38 | /**↵ | | |
|
39 | * @param address The address to set.↵ | | |
|
40 | */↵ | | 25 | postalCode;↵
|
| | | 26 | }↵
|
|
41 | public void setAddress(String address) {↵ | | 27 | public void set↵
|
42 | this.address = address;↵ | | |
|
43 | }↵ | | |
|
44 | /**↵ | | |
|
45 | * @return Returns the country.↵ | | |
|
46 | */↵ | | 28 | PostalCode(String postalCode) {↵
|
| | | 29 | this.postalCode = postalCode;↵
|
| | | 30 | }↵
|
|
47 | public String getCountry() {↵ | | 31 | public String getCountry() {↵
|
48 | return country;↵ | | 32 | return country;↵
|
49 | }↵ | | 33 | }↵
|
50 | /**↵ | | |
|
51 | * @param country The country to set.↵ | | |
|
52 | */↵ | | |
|
53 | public void setCountry(String country) {↵ | | 34 | public void setCountry(String country) {↵
|
54 | this.country = country;↵ | | 35 | this.country = country;↵
|
55 | }↵ | | 36 | }↵
|
56 | /**↵ | | |
|
57 | * @return Returns the zip.↵ | | |
|
58 | */↵ | | |
|
59 | public String getZip() {↵ | | |
|
60 | return zip;↵ | | |
|
61 | }↵ | | |
|
62 | /**↵ | | |
|
63 | * @param zip The zip to set.↵ | | |
|
64 | */↵ | | |
|
65 | public void setZip(String zip) {↵ | | |
|
66 | this.zip = zip | | |
|
| | | 37 | public StateProvince getStateProvince() {↵
|
| | | 38 | return stateProvince;↵
|
| | | 39 | }↵
|
|
| | | 40 | public void setStateProvince(StateProvince stateProvince) {↵
|
| | | 41 | this.stateProvince = stateProvince
|