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