1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package examples.simple;
17
18 import java.util.Date;
19
20 public class PersonWithAddress {
21 private Integer id;
22 private String firstName;
23 private LastName lastName;
24 private Date birthDate;
25 private Boolean employed;
26 private String occupation;
27 private AddressRecord address;
28
29 public Integer getId() {
30 return id;
31 }
32
33 public void setId(Integer id) {
34 this.id = id;
35 }
36
37 public String getFirstName() {
38 return firstName;
39 }
40
41 public void setFirstName(String firstName) {
42 this.firstName = firstName;
43 }
44
45 public LastName getLastName() {
46 return lastName;
47 }
48
49 public void setLastName(LastName lastName) {
50 this.lastName = lastName;
51 }
52
53 public Date getBirthDate() {
54 return birthDate;
55 }
56
57 public void setBirthDate(Date birthDate) {
58 this.birthDate = birthDate;
59 }
60
61 public String getOccupation() {
62 return occupation;
63 }
64
65 public void setOccupation(String occupation) {
66 this.occupation = occupation;
67 }
68
69 public Boolean getEmployed() {
70 return employed;
71 }
72
73 public void setEmployed(Boolean employed) {
74 this.employed = employed;
75 }
76
77 public AddressRecord getAddress() {
78 return address;
79 }
80
81 public void setAddress(AddressRecord address) {
82 this.address = address;
83 }
84 }