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