1 | public class Note {
↵ | | 1 | public class Person {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String description;↵ | | 3 | private String ↵
|
|
4 | public Note() {↵ | | |
|
5 | }↵ | | |
|
|
6 | public Note(String descripti↵ | | 4 | name;↵
|
|
| | | 5 | public Person(String name) {↵
|
| | | 6 | this.name = name;↵
|
| | | 7 | }↵
|
|
7 | on) {
↵ | | 8 | public Person() {↵
|
8 | this.description = description;↵ | | 9 | ↵
|
9 | }↵ | | |
|
10 |
↵ | | 10 | }↵
|
|
| | | 11 | /**↵
|
| | | 12 | * @return Returns the id.↵
|
| | | 13 | */↵
|
11 | public Long getId() {
↵ | | 14 | public Long getId() {↵
|
12 | return id;
↵ | | 15 | return id;↵
|
13 | }↵ | | 16 | }↵
|
14 |
↵ | | |
|
|
| | | 17 | /**↵
|
| | | 18 | * @param id The id to set.↵
|
| | | 19 | */↵
|
15 | public void setId(Long id) {
↵ | | 20 | public void setId(Long id) {↵
|
16 | this.id = id;
↵ | | 21 | this.id = id;↵
|
17 | }↵ | | 22 | }↵
|
18 |
↵ | | |
|
|
| | | 23 | /**↵
|
| | | 24 | * @return Returns the name.↵
|
| | | 25 | */↵
|
19 | public String getDescription() {
↵ | | 26 | public String getName() {↵
|
20 | return description;↵ | | 27 | return ↵
|
21 | }↵ | | |
|
|
22 | public void setDescription(String description↵ | | 28 | name;↵
|
| | | 29 | }↵
|
|
| | | 30 | /**↵
|
| | | 31 | * @param name The name to set.↵
|
| | | 32 | */↵
|
23 | ) {
↵ | | 33 | public void setName(String name) {↵
|
24 | this.description = description;
↵ | | 34 | this.name = name;↵
|
25 | | | 35 |
|