1 | public class Parent {↵ | | 1 | public class Document {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private Set deleteOrphanChildren;↵ | | 3 | private String location;
↵
|
4 | private Set children;↵ | | 4 | private ↵
|
| | | 5 | User owner;↵
|
| | | 6 |
↵
|
5 | public Long getId() {↵ | | 7 | public Long getId() {
↵
|
6 | return id;↵ | | 8 | return id;
↵
|
7 | }↵ | | 9 | }↵
|
|
| | | 10 |
↵
|
8 | public void setId(Long id) {↵ | | 11 | public void setId(Long id) {
↵
|
9 | this.id = id;↵ | | 12 | this.id = id;
↵
|
10 | }↵ | | 13 | }↵
|
|
| | | 14 |
↵
|
11 | public Set getDeleteOrphanChildren() {↵ | | 15 | public String getLocation() {
↵
|
12 | return deleteOrphanChildren;↵ | | 16 | return location;
↵
|
13 | }↵ | | 17 | }↵
|
|
| | | 18 |
↵
|
14 | public void setDeleteOrphanChildren(Set deleteOrphanChildren) {↵ | | 19 | public void setLocation(String location) {
↵
|
15 | this.deleteOrphanChildren = deleteOrphanChildren;↵ | | 20 | this.location = location;
↵
|
16 | }↵ | | 21 | }↵
|
|
| | | 22 |
↵
|
17 | public Set getChildren() {↵ | | 23 | public User getOwner() {
↵
|
18 | return children;↵ | | 24 | return ↵
|
19 | }↵ | | |
|
| | | 25 | owner;↵
|
| | | 26 | }↵
|
| | | 27 |
↵
|
20 | public void setChildren(Set children) {↵ | | 28 | public void setOwner(User owner) {
↵
|
21 | this.children = children;↵ | | 29 | this.owner = owner;
↵
|
22 | | | 30 |
|