1 | public class Address {↵ | | 1 | public class ↵
|
2 | private Long id;
↵ | | 2 | Person {↵
|
| | | 3 | ↵
|
| | | 4 | private String name;↵
|
3 | private String info;↵ | | 5 | private String ↵
|
4 | private Set suites = new HashSet();↵ | | |
|
5 |
↵ | | 6 | employeeId;↵
|
| | | 7 | private Employee employee;↵
|
|
6 | public Address() {↵ | | 8 | public ↵
|
7 | }↵ | | |
|
8 |
↵ | | 9 | Person() {}↵
|
9 | public Address(String info) {
↵ | | 10 | public Person(String name) {↵
|
10 | this.info = info;↵ | | 11 | this.↵
|
11 | }↵ | | |
|
|
12 | public Long getId↵ | | 12 | name = name;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
13 | () {
↵ | | 15 | public Employee getEmployee() {↵
|
14 | return id;↵ | | 16 | return ↵
|
15 | }↵ | | |
|
16 |
↵ | | 17 | employee;↵
|
| | | 18 | }↵
|
| | | 19 | ↵
|
17 | public void setId(Long id) {
↵ | | 20 | public void setEmployee(Employee employee) {↵
|
18 | this.id = id;↵ | | 21 | this.↵
|
19 | }↵ | | |
|
20 |
↵ | | 22 | employee = employee;↵
|
| | | 23 | }↵
|
| | | 24 | ↵
|
21 | public String getInfo() {
↵ | | 25 | public String getEmployeeId() {↵
|
22 | return info;↵ | | 26 | return ↵
|
23 | }↵ | | |
|
24 |
↵ | | 27 | employeeId;↵
|
| | | 28 | }↵
|
| | | 29 | ↵
|
25 | public void setInfo(String info) {
↵ | | 30 | public void setEmployeeId(String employeeId) {↵
|
26 | this.info = info;↵ | | 31 | this.↵
|
27 | }↵ | | |
|
|
28 | public Set getSuites↵ | | 32 | employeeId = employeeId;↵
|
| | | 33 | }↵
|
| | | 34 | ↵
|
29 | () {
↵ | | 35 | public String getName() {↵
|
30 | return suites;↵ | | 36 | return ↵
|
31 | }↵ | | |
|
32 |
↵ | | 37 | name;↵
|
| | | 38 | }↵
|
| | | 39 | ↵
|
33 | public void setSuites(Set suites) {
↵ | | 40 | public void setName(String name) {↵
|
34 | this.suites = suites;
↵ | | 41 | this.name = name;↵
|
35 | | | 42 |
|