1 | public class Contact implements Serializable↵ | | 1 | public class Single implements Serializable↵
|
2 | {↵ | | |
|
3 | /** The serialVersionUID */↵ | | |
|
4 | private static final l↵ | | 2 | {↵
|
| | | 3 | private String id;↵
|
| | | 4 | private String prop;↵
|
| | | 5 | private String string;↵
|
5 | ong serialVersionUID = 1L;↵ | | 6 | private Collection several↵
|
6 | ↵ | | |
|
7 | Integer id;↵ | | |
|
8 | String name;↵ | | |
|
9 | String tlf;↵ | | |
|
10 | Customer customer;↵ | | |
|
11 | ↵ | | |
|
12 | public Contact()↵ | | |
|
13 | {↵ | | |
|
14 | ↵ | | |
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | public Integer getId()↵ | | |
|
18 | {↵ | | |
|
19 | return id;↵ | | |
|
20 | }↵ | | |
|
|
21 | ↵ | | 7 | = new HashSet();↵
|
| | | 8 | /**↵
|
| | | 9 | * Returns the id.↵
|
| | | 10 | * @return String↵
|
| | | 11 | */↵
|
| | | 12 | public String getId() {↵
|
| | | 13 | return id;↵
|
| | | 14 | }↵
|
| | | 15 | ↵
|
| | | 16 | /**↵
|
| | | 17 | * Returns the prop.↵
|
| | | 18 | * @return String↵
|
| | | 19 | */↵
|
| | | 20 | public String getProp() {↵
|
| | | 21 | return prop;↵
|
| | | 22 | }↵
|
| | | 23 | ↵
|
| | | 24 | /**↵
|
| | | 25 | * Returns the several.↵
|
| | | 26 | * @return Set↵
|
| | | 27 | */↵
|
| | | 28 | public Collection getSeveral() {↵
|
| | | 29 | return several;↵
|
| | | 30 | }↵
|
| | | 31 | ↵
|
| | | 32 | /**↵
|
| | | 33 | * Sets the id.↵
|
| | | 34 | * @param id The id to set↵
|
| | | 35 | */↵
|
22 | public void setId(Integer id)↵ | | 36 | public void setId(↵
|
23 | {↵ | | |
|
24 | this.id = id;↵ | | |
|
25 | }↵ | | |
|
|
26 | public String getName()↵ | | |
|
27 | {↵ | | |
|
28 | return name;↵ | | |
|
29 | }↵ | | |
|
30 | ↵ | | |
|
31 | ↵ | | 37 | String id) {↵
|
| | | 38 | this.id = id;↵
|
| | | 39 | }↵
|
| | | 40 | ↵
|
| | | 41 | /**↵
|
| | | 42 | * Sets the prop.↵
|
| | | 43 | * @param prop The prop to set↵
|
| | | 44 | */↵
|
32 | public void setName(String name)↵ | | 45 | public void setProp(String ↵
|
33 | {↵ | | |
|
34 | this.name = name;↵ | | |
|
35 | }↵ | | |
|
36 | ↵ | | |
|
37 | public String getTlf()↵ | | |
|
38 | {↵ | | |
|
39 | return tlf;↵ | | |
|
40 | }↵ | | |
|
41 | ↵ | | |
|
42 | public void setTlf(String tlf)↵ | | |
|
43 | {↵ | | |
|
44 | this.tlf = tlf;↵ | | |
|
45 | }↵ | | |
|
46 | ↵ | | |
|
47 | public Customer getCustomer()↵ | | |
|
48 | {↵ | | |
|
49 | return customer;↵ | | |
|
50 | }↵ | | |
|
51 | ↵ | | |
|
52 | public void setCustomer(Customer customer)↵ | | |
|
53 | {↵ | | |
|
54 | this.customer = customer | | 46 | prop) {↵
|
| | | 47 | this.prop = prop;↵
|
| | | 48 | }↵
|
| | | 49 | ↵
|
| | | 50 | /**↵
|
| | | 51 | * Sets the several.↵
|
| | | 52 | * @param several The several to set↵
|
| | | 53 | */↵
|
| | | 54 | public void setSeveral(Collection several) {↵
|
| | | 55 | this.several = several;↵
|
| | | 56 | }↵
|
| | | 57 | ↵
|
| | | 58 | /**↵
|
| | | 59 | * Returns the string.↵
|
| | | 60 | * @return String↵
|
| | | 61 | */↵
|
| | | 62 | public String getString() {↵
|
| | | 63 | return string;↵
|
| | | 64 | }↵
|
| | | 65 | ↵
|
| | | 66 | /**↵
|
| | | 67 | * Sets the string.↵
|
| | | 68 | * @param string The string to set↵
|
| | | 69 | */↵
|
| | | 70 | public void setString(String string) {↵
|
| | | 71 | this.string = string
|