1 | public class Employee {
↵ | | 1 | public class Address implements Serializable {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private Person person;↵ | | 3 | private ↵
|
4 | private Date hireDate;↵ | | |
|
5 | private OptionalComponent optionalComponent;↵ | | |
|
6 | private Set directReports = new HashSet();↵ | | |
|
7 |
↵ | | 4 | String address;↵
|
| | | 5 | private String zip;↵
|
| | | 6 | private String country;↵
|
| | | 7 | private Person person;↵
|
| | | 8 | /**↵
|
| | | 9 | * @return Returns the id.↵
|
| | | 10 | */↵
|
8 | public Long getId() {
↵ | | 11 | public Long getId() {↵
|
9 | return id;
↵ | | 12 | return id;↵
|
10 | }↵ | | 13 | }↵
|
11 |
↵ | | |
|
| | | 14 | /**↵
|
| | | 15 | * @param id The id to set.↵
|
| | | 16 | */↵
|
12 | public void setId(Long id) {
↵ | | 17 | public void setId(Long id) {↵
|
13 | this.id = id;
↵ | | 18 | this.id = id;↵
|
14 | }↵ | | 19 | }↵
|
15 |
↵ | | |
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the person.↵
|
| | | 22 | */↵
|
16 | public Person getPerson() {
↵ | | 23 | public Person getPerson() {↵
|
17 | return person;
↵ | | 24 | return person;↵
|
18 | }↵ | | 25 | }↵
|
19 |
↵ | | |
|
| | | 26 | /**↵
|
| | | 27 | * @param person The person to set.↵
|
| | | 28 | */↵
|
20 | public void setPerson(Person person) {
↵ | | 29 | public void setPerson(Person person) {↵
|
21 | this.person = person;
↵ | | 30 | this.person = person;↵
|
22 | }↵ | | 31 | }↵
|
23 |
↵ | | |
|
| | | 32 | /**↵
|
| | | 33 | * @return Returns the address.↵
|
| | | 34 | */↵
|
24 | public Date getHireDate() {
↵ | | 35 | public String getAddress() {↵
|
25 | return hireDate;↵ | | 36 | return ↵
|
26 | }↵ | | |
|
|
27 | public void setHireDate(Date hireDate↵ | | 37 | address;↵
|
| | | 38 | }↵
|
| | | 39 | /**↵
|
| | | 40 | * @param address The address to set.↵
|
| | | 41 | */↵
|
28 | ) {
↵ | | 42 | public void setAddress(String address) {↵
|
29 | this.hireDate = hireDate;↵ | | 43 | this.↵
|
30 | }↵ | | |
|
|
31 | public OptionalComponent getOptionalComponent↵ | | 44 | address = address;↵
|
| | | 45 | }↵
|
| | | 46 | /**↵
|
| | | 47 | * @return Returns the country.↵
|
| | | 48 | */↵
|
32 | () {
↵ | | 49 | public String getCountry() {↵
|
33 | return optionalComponent;↵ | | 50 | return ↵
|
34 | }↵ | | |
|
|
35 | public void setOptionalComponent(OptionalComponent optionalComponent↵ | | 51 | country;↵
|
| | | 52 | }↵
|
| | | 53 | /**↵
|
| | | 54 | * @param country The country to set.↵
|
| | | 55 | */↵
|
36 | ) {
↵ | | 56 | public void setCountry(String country) {↵
|
37 | this.optionalComponent = optionalComponent;↵ | | 57 | this.↵
|
38 | }↵ | | |
|
39 |
↵ | | 58 | country = country;↵
|
| | | 59 | }↵
|
| | | 60 | /**↵
|
| | | 61 | * @return Returns the zip.↵
|
| | | 62 | */↵
|
40 | public Set getDirectReports() {
↵ | | 63 | public String getZip() {↵
|
41 | return directReports;↵ | | 64 | return ↵
|
42 | }↵ | | |
|
43 |
↵ | | 65 | zip;↵
|
| | | 66 | }↵
|
| | | 67 | /**↵
|
| | | 68 | * @param zip The zip to set.↵
|
| | | 69 | */↵
|
44 | public void setDirectReports(Set directReports) {
↵ | | 70 | public void setZip(String zip) {↵
|
45 | this.directReports = directReports;
↵ | | 71 | this.zip = zip;↵
|
46 | | | 72 |
|