1 | public class Note {
↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String description;↵ | | |
|
|
4 | public Note() {↵ | | |
|
5 | }↵ | | |
|
6 |
↵ | | 3 | String name;↵
|
| | | 4 | private Employee employee;↵
|
| | | 5 | Person() {}↵
|
7 | public Note(String description) {
↵ | | 6 | public Person(String name) {↵
|
8 | this.description = description;↵ | | 7 | this.↵
|
9 | }↵ | | |
|
|
10 | public Long getId↵ | | 8 | name = name;↵
|
| | | 9 | }↵
|
11 | () {
↵ | | 10 | public Employee getEmployee() {↵
|
12 | return id;↵ | | 11 | return ↵
|
13 | }↵ | | |
|
14 |
↵ | | 12 | employee;↵
|
| | | 13 | }↵
|
15 | public void setId(Long id) {
↵ | | 14 | public void setEmployee(Employee employee) {↵
|
16 | this.id = id;↵ | | 15 | this.↵
|
17 | }↵ | | |
|
18 |
↵ | | 16 | employee = employee;↵
|
| | | 17 | }↵
|
19 | public String getDescription() {
↵ | | 18 | public String getName() {↵
|
20 | return description;↵ | | 19 | return ↵
|
21 | }↵ | | |
|
|
22 | public void setDescription(String description↵ | | 20 | name;↵
|
| | | 21 | }↵
|
23 | ) {
↵ | | 22 | public void setName(String name) {↵
|
24 | this.description = description | | 23 | this.name = name
|