1 | public class Contact implements Serializable↵ | | 1 | public class C2 extends ↵
|
2 | {↵ | | |
|
3 | /** The serialVersionUID */↵ | | |
|
4 | private static final long serialVersionUID = 1L;↵ | | |
|
5 | ↵ | | |
|
6 | Integer id;↵ | | |
|
7 | ↵ | | 2 | B {↵
|
| | | 3 | private String address;↵
|
| | | 4 | private C1 c1;↵
|
8 | String name;↵ | | 5 | private String c2Name;↵
|
9 | String tlf;↵ | | |
|
10 | Customer customer;↵ | | |
|
11 | ↵ | | |
|
12 | public Contact()↵ | | |
|
13 | {↵ | | |
|
14 | ↵ | | |
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | public Integer getId()↵ | | |
|
18 | {↵ | | |
|
19 | return id;↵ | | |
|
20 | }↵ | | |
|
|
21 | public void setId(Integer id)↵ | | |
|
22 | {↵ | | |
|
23 | this.id = id;↵ | | |
|
24 | }↵ | | |
|
|
25 | public String getName()↵ | | |
|
26 | {↵ | | |
|
27 | return name;↵ | | |
|
28 | }↵ | | |
|
29 | ↵ | | |
|
30 | public void setName(String name)↵ | | |
|
31 | {↵ | | |
|
32 | this.name = name;↵ | | |
|
33 | }↵ | | |
|
34 | ↵ | | |
|
35 | public String getTlf()↵ | | |
|
36 | {↵ | | |
|
37 | return tlf;↵ | | |
|
38 | }↵ | | |
|
39 | ↵ | | |
|
40 | public void setTlf(String tlf)↵ | | |
|
41 | {↵ | | |
|
42 | this.tlf = tlf;↵ | | |
|
43 | }↵ | | |
|
44 | ↵ | | |
|
45 | public Customer↵ | | |
|
| | | 6 | private Collection c1s = new ArrayList();↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the address.↵
|
| | | 9 | * @return String↵
|
| | | 10 | */↵
|
| | | 11 | public String getAddress() {↵
|
| | | 12 | return address;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
| | | 15 | /**↵
|
| | | 16 | * Sets the address.↵
|
| | | 17 | * @param address The address to set↵
|
| | | 18 | */↵
|
| | | 19 | public void setAddress(String address) {↵
|
| | | 20 | this.address = address;↵
|
| | | 21 | }↵
|
| | | 22 | ↵
|
| | | 23 | /**↵
|
| | | 24 | * @return Returns the c.↵
|
| | | 25 | */↵
|
| | | 26 | public C1 getC1() {↵
|
| | | 27 | return c1;↵
|
| | | 28 | }↵
|
|
| | | 29 | /**↵
|
| | | 30 | * @param c The c to set.↵
|
| | | 31 | */↵
|
| | | 32 | public void setC1(C1 c) {↵
|
| | | 33 | this.c1 = c;↵
|
| | | 34 | }↵
|
|
| | | 35 | /**↵
|
| | | 36 | * @return Returns the cs.↵
|
| | | 37 | */↵
|
| | | 38 | public Collection getC1s() {↵
|
| | | 39 | return c1s;↵
|
| | | 40 | }↵
|
|
| | | 41 | /**↵
|
| | | 42 | * @param cs The cs to set.↵
|
| | | 43 | */↵
|
| | | 44 | public void setC1s(Collection cs) {↵
|
| | | 45 | this.c1s = cs;↵
|
| | | 46 | }↵
|
|
46 | getCustomer()↵ | | 47 | public String getC2Name()↵
|
47 | {↵ | | |
|
48 | ↵ | | 48 | {↵
|
49 | return customer;↵ | | 49 | return c↵
|
50 | }↵ | | |
|
51 | ↵ | | |
|
52 | ↵ | | 50 | 2Name;↵
|
| | | 51 | }↵
|
|
53 | public void setCustomer(Customer customer)↵ | | 52 | public void setC↵
|
54 | {↵ | | |
|
55 | this.custo↵ | | 53 | 2Name(String name) {↵
|
56 | mer = customer;↵ | | 54 | c2Name = ↵
|
57 | | | 55 | name;↵
|
| | | 56 |
|