1 | public class Person {↵ | | 1 | public class Document {↵
|
2 | ↵ | | 2 | ↵
|
3 | private Long id;↵ | | 3 | private String text;↵
|
4 | private String firstName;↵ | | 4 | private String name;↵
|
5 | private String lastName;↵ | | 5 | private ↵
|
|
6 | public Person↵ | | 6 | Date lastModified;↵
|
|
7 | () {↵ | | 7 | Document() {↵
|
8 | }↵ | | 8 | }↵
|
| | | 9 | ↵
|
9 | public Person(String firstName, String lastName) {↵ | | 10 | public Document(String text, String name) {↵
|
10 | this.firstName = firstName;↵ | | 11 | this.text = text;↵
|
11 | this.lastName = lastName;↵ | | 12 | this.name = name;↵
|
12 | }↵ | | 13 | }↵
|
|
13 | public Long getId() {↵ | | 14 | public String getName() {↵
|
14 | return id;↵ | | 15 | return name;↵
|
15 | }↵ | | 16 | }↵
|
|
16 | public void setId(Long id) {↵ | | 17 | public void set↵
|
17 | this.id = id↵ | | 18 | Name(String name) {↵
|
18 | ;↵ | | 19 | this.name = name;↵
|
19 | }↵ | | 20 | }↵
|
|
20 | public String getFirstName() {↵ | | 21 | public String getText() {↵
|
21 | return firstName;↵ | | 22 | return text;↵
|
22 | }↵ | | 23 | }↵
|
|
23 | public void setFirstName(String firstName) {↵ | | 24 | public void set↵
|
24 | this.firstName = firstName↵ | | 25 | Text(String text) {↵
|
25 | ;↵ | | 26 | this.text = text;↵
|
26 | }↵ | | 27 | }↵
|
|
27 | public String getLastName() {↵ | | 28 | public Date getLastModified() {↵
|
28 | return lastName;↵ | | 29 | return last↵
|
29 | }↵ | | |
|
|
30 | public void setLastName(String lastName↵ | | 30 | Modified;↵
|
| | | 31 | }↵
|
|
31 | ) {↵ | | 32 | void setLastModified(Date lastModified) {↵
|
32 | this.lastName = lastName;↵ | | 33 | this.lastModified = lastModified;↵
|
33 | | | 34 |
|