1 | public class Address implements Serializable {↵ | | 1 | public class C1 extends B{↵
|
2 | private Long id;↵ | | 2 | private String address;↵
|
3 | private String address;↵ | | 3 | private String c1Name;↵
|
4 | private String zip;↵ | | 4 | private C2 c2;↵
|
5 | private String country;↵ | | 5 | private ↵
|
6 | private Person person↵ | | 6 | D d;↵
|
7 | ;↵ | | 7 | private Collection c2s = new ArrayList();↵
|
8 | /**↵ | | 8 | /**↵
|
9 | * @return Returns the id.↵ | | 9 | * Returns the address.↵
|
| | | 10 | * @return String↵
|
10 | */↵ | | 11 | */↵
|
11 | public Long getId() {↵ | | 12 | public String getAddress() {↵
|
12 | return id;↵ | | 13 | return address;↵
|
13 | }↵ | | 14 | }↵
|
14 | ↵ | | 15 | ↵
|
15 | /**↵ | | 16 | /**↵
|
16 | * @param id The id↵ | | 17 | * Sets the address.↵
|
17 | to set.↵ | | 18 | * @param address The address to set↵
|
18 | */↵ | | 19 | */↵
|
19 | public void setId(Long id) {↵ | | 20 | public void setAddress(String address) {↵
|
20 | this.id = id;↵ | | 21 | this.address = address;↵
|
21 | }↵ | | 22 | }↵
|
22 | ↵ | | 23 | ↵
|
23 | /**↵ | | 24 | /**↵
|
24 | * @return Returns the person.↵ | | 25 | * Returns the ↵
|
25 | */↵ | | |
|
26 | public Person getPerson↵ | | 26 | d.↵
|
| | | 27 | * @return D↵
|
| | | 28 | */↵
|
27 | () {↵ | | 29 | public D getD() {↵
|
28 | return person;↵ | | 30 | return d;↵
|
29 | }↵ | | 31 | }↵
|
30 | ↵ | | 32 | ↵
|
31 | /**↵ | | 33 | /**↵
|
32 | * @param person The person↵ | | 34 | * Sets the d.↵
|
33 | to set.↵ | | 35 | * @param d The d to set↵
|
34 | */↵ | | 36 | */↵
|
35 | public void setPerson(Person person) {↵ | | 37 | public void set↵
|
36 | this.person = person↵ | | 38 | D(D d) {↵
|
37 | ;↵ | | 39 | this.d = d;↵
|
38 | }↵ | | 40 | }↵
|
39 | ↵ | | 41 | ↵
|
40 | /**↵ | | 42 | /**↵
|
41 | * @return Returns the address.↵ | | 43 | * @return Returns the c.↵
|
42 | */↵ | | 44 | */↵
|
43 | public String getAddress() {↵ | | 45 | public C2 getC2() {↵
|
44 | return address;↵ | | 46 | return c2;↵
|
45 | }↵ | | 47 | }↵
|
|
46 | /**↵ | | 48 | /**↵
|
47 | * @param address The address to set.↵ | | 49 | * @param c The c to set.↵
|
48 | */↵ | | 50 | */↵
|
49 | public void setAddress(String address) {↵ | | 51 | public void set↵
|
50 | this.address = address↵ | | 52 | C2(C2 c) {↵
|
51 | ;↵ | | 53 | this.c2 = c;↵
|
52 | }↵ | | 54 | }↵
|
|
53 | /**↵ | | 55 | /**↵
|
54 | * @return Returns the country.↵ | | 56 | * @return Returns the cs.↵
|
55 | */↵ | | 57 | */↵
|
56 | public String getCountry() {↵ | | 58 | public Collection getC2s() {↵
|
57 | return country;↵ | | 59 | return c2s;↵
|
58 | }↵ | | 60 | }↵
|
|
59 | /**↵ | | 61 | /**↵
|
60 | * @param country The country to set.↵ | | 62 | * @param cs The cs to set.↵
|
61 | */↵ | | 63 | */↵
|
62 | public void setCountry(String country) {↵ | | 64 | public void setC↵
|
63 | this.country = country↵ | | 65 | 2s(Collection cs) {↵
|
64 | ;↵ | | 66 | this.c2s = cs;↵
|
65 | }↵ | | 67 | }↵
|
|
66 | /**↵ | | 68 | /**↵
|
67 | * @return Returns the zip.↵ | | 69 | * @return Returns the c1Name.↵
|
68 | */↵ | | 70 | */↵
|
69 | public String getZip() {↵ | | 71 | public String getC1Name() {↵
|
70 | return zip;↵ | | 72 | return c1Name;↵
|
71 | }↵ | | 73 | }↵
|
72 | /**↵ | | 74 | /**↵
|
73 | * @param zip The zip to set.↵ | | 75 | * @param name The c1Name to set.↵
|
74 | */↵ | | 76 | */↵
|
75 | public void setZip(String zip) {↵ | | 77 | public void setC1Name(String name) {↵
|
76 | this.zip = zip;↵ | | 78 | c1Name = name;↵
|
77 | | | 79 |
|