1 | public class ChildInfoAssigned {↵ | | 1 | public class ↵
|
2 | private Long id;↵ | | |
|
3 | private ChildAssigned owner;↵ | | |
|
4 | private String info;↵ | | |
|
|
5 | public ChildInfoAssigned() {↵ | | |
|
6 | }↵ | | |
|
|
7 | public ChildInfoAssigned(Long id, ↵ | | 2 | Person {↵
|
| | | 3 | ↵
|
| | | 4 | private String name;↵
|
| | | 5 | private String employeeId;↵
|
| | | 6 | private Employee employee;↵
|
|
| | | 7 | public Person() {}↵
|
8 | String info) {
↵ | | 8 | public Person(String name) {↵
|
9 | this.id = id;↵ | | 9 | this.↵
|
10 | this.info = info;↵ | | |
|
11 | }↵ | | |
|
|
12 | public Long getId↵ | | 10 | name = name;↵
|
| | | 11 | }↵
|
| | | 12 | ↵
|
13 | () {
↵ | | 13 | public Employee getEmployee() {↵
|
14 | return id;↵ | | 14 | return ↵
|
15 | }↵ | | |
|
|
16 | public ChildAssigned getOwner↵ | | 15 | employee;↵
|
| | | 16 | }↵
|
| | | 17 | ↵
|
| | | 18 | public void setEmployee(Employee employee) {↵
|
| | | 19 | this.employee = employee;↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
17 | () {
↵ | | 22 | public String getEmployeeId() {↵
|
18 | return owner;↵ | | 23 | return ↵
|
19 | }↵ | | |
|
20 |
↵ | | 24 | employeeId;↵
|
| | | 25 | }↵
|
| | | 26 | ↵
|
21 | public void setOwner(ChildAssigned owner) {
↵ | | 27 | public void setEmployeeId(String employeeId) {↵
|
22 | this.owner = owner;↵ | | 28 | this.↵
|
23 | }↵ | | |
|
24 |
↵ | | 29 | employeeId = employeeId;↵
|
| | | 30 | }↵
|
| | | 31 | ↵
|
25 | public String getInfo() {
↵ | | 32 | public String getName() {↵
|
26 | return info;↵ | | 33 | return ↵
|
27 | }↵ | | |
|
28 |
↵ | | 34 | name;↵
|
| | | 35 | }↵
|
| | | 36 | ↵
|
29 | public void setInfo(String info) {
↵ | | 37 | public void setName(String name) {↵
|
30 | this.info = info | | 38 | this.name = name
|