1 | public class Document {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String location;↵ | | 3 | private String name;↵
|
4 | private User owner;↵ | | 4 | private ↵
|
| | | 5 | String personId;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the id.↵
|
| | | 8 | */↵
|
5 | public Long getId() {↵ | | 9 | public Long getId() {↵
|
6 | return id;↵ | | 10 | return id;↵
|
7 | }↵ | | 11 | }↵
|
| | | 12 | /**↵
|
| | | 13 | * @param id The id to set.↵
|
| | | 14 | */↵
|
8 | public void setId(Long id) {↵ | | 15 | public void setId(Long id) {↵
|
9 | this.id = id;↵ | | 16 | this.id = id;↵
|
10 | }↵ | | 17 | }↵
|
| | | 18 | /**↵
|
| | | 19 | * @return Returns the name.↵
|
| | | 20 | */↵
|
11 | public String getLocation() {↵ | | 21 | public String getName() {↵
|
12 | return location;↵ | | 22 | return ↵
|
13 | }↵ | | |
|
| | | 23 | name;↵
|
| | | 24 | }↵
|
| | | 25 | /**↵
|
| | | 26 | * @param name The name to set.↵
|
| | | 27 | */↵
|
14 | public void setLocation(String location) {↵ | | 28 | public void set↵
|
15 | this.location = location↵ | | 29 | Name(String name) {↵
|
16 | ;↵ | | 30 | this.name = name;↵
|
17 | }↵ | | 31 | }↵
|
|
18 | public User getOwner() {↵ | | 32 | public String getPersonId() {↵
|
19 | return owner;↵ | | 33 | return personId;↵
|
20 | }↵ | | 34 | }↵
|
|
21 | public void setOwner(User owner) {↵ | | 35 | public void set↵
|
22 | this.owner = owner | | 36 | PersonId(String personId) {↵
|
| | | 37 | this.personId = personId
|