1
2
3
4
5 package be.dvw.administration.model;
6
7 import java.util.HashSet;
8 import java.util.Set;
9
10 /***
11 * @author Gregory Van Seghbroeck
12 *
13 */
14 public class Family {
15 private int id;
16 private String familyname1;
17 private String familyname2;
18 private String telephone;
19
20 private Address address;
21 private Set familymembers = new HashSet();
22
23
24 public String toString() {
25 return "[Family] <"+familyname1+" - "+familyname2+ " "+telephone+" "+address+">";
26 }
27
28
29 /***
30 * @return Returns the id.
31 */
32 public int getId() {
33 return id;
34 }
35 /***
36 * @param id The id to set.
37 */
38 public void setId(int id) {
39 this.id = id;
40 }
41 /***
42 * @return Returns the address.
43 */
44 public Address getAddress() {
45 return address;
46 }
47 /***
48 * @param address The address to set.
49 */
50 public void setAddress(Address address) {
51 this.address = address;
52 }
53 /***
54 * @return Returns the familymembers.
55 */
56 public Set getFamilymembers() {
57 return familymembers;
58 }
59 /***
60 * @param familymembers The familymembers to set.
61 */
62 public void setFamilymembers(Set familymembers) {
63 this.familymembers = familymembers;
64 }
65 /***
66 * @return Returns the familyname1.
67 */
68 public String getFamilyname1() {
69 return familyname1;
70 }
71 /***
72 * @param familyname1 The familyname1 to set.
73 */
74 public void setFamilyname1(String familyname1) {
75 this.familyname1 = familyname1;
76 }
77 /***
78 * @return Returns the familyname2.
79 */
80 public String getFamilyname2() {
81 return familyname2;
82 }
83 /***
84 * @param familyname2 The familyname2 to set.
85 */
86 public void setFamilyname2(String familyname2) {
87 this.familyname2 = familyname2;
88 }
89 /***
90 * @return Returns the telephone.
91 */
92 public String getTelephone() {
93 return telephone;
94 }
95 /***
96 * @param telephone The telephone to set.
97 */
98 public void setTelephone(String telephone) {
99 this.telephone = telephone;
100 }
101 }