View Javadoc
1   /*
2    *    Copyright 2016-2025 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
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  }