1 | public class Entity {↵ | | 1 | public class ChildAssigned {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Entity child;↵ | | 4 | private ↵
|
5 | private Entity sibling;↵ | | |
|
|
6 | public Entity() {↵ | | |
|
7 | }↵ | | |
|
|
8 | public Entity(String name) {↵ | | 5 | ParentAssigned parent;↵
|
| | | 6 | private ChildInfoAssigned info;↵
|
|
| | | 7 | public ChildAssigned() {↵
|
| | | 8 | }↵
|
|
| | | 9 | public ChildAssigned(Long id, String name) {↵
|
| | | 10 | this.id = id;↵
|
9 | this.name = name;↵ | | 11 | this.name = name;↵
|
10 | }↵ | | 12 | }↵
|
|
11 | public Long getId() {↵ | | 13 | public Long getId() {↵
|
12 | return id;↵ | | 14 | return id;↵
|
13 | }↵ | | 15 | }↵
|
|
14 | public void setId(Long id) {↵ | | |
|
15 | this.id = id;↵ | | |
|
16 | }↵ | | |
|
|
17 | public String getName() {↵ | | 16 | public String getName() {↵
|
18 | return name;↵ | | 17 | return name;↵
|
19 | }↵ | | 18 | }↵
|
|
20 | public void setName(String name) {↵ | | 19 | public void setName(String name) {↵
|
21 | this.name = name;↵ | | 20 | this.name = name;↵
|
22 | }↵ | | 21 | }↵
|
|
23 | public Entity getChild() {↵ | | 22 | public ParentAssigned getParent() {↵
|
24 | return child;↵ | | 23 | return parent;↵
|
25 | }↵ | | 24 | }↵
|
|
26 | public void setChild(Entity child) {↵ | | 25 | public void set↵
|
27 | this.child = child;↵ | | |
|
28 | }↵ | | |
|
|
29 | public Entity getSibling↵ | | 26 | Parent(ParentAssigned parent) {↵
|
| | | 27 | this.parent = parent;↵
|
| | | 28 | }↵
|
|
30 | () {↵ | | 29 | public ChildInfoAssigned getInfo() {↵
|
31 | return sibling;↵ | | 30 | return info;↵
|
32 | }↵ | | 31 | }↵
|
|
33 | public void setSibling(Entity sibling) {↵ | | 32 | public void set↵
|
34 | this.sibling = sibling | | 33 | Info(ChildInfoAssigned info) {↵
|
| | | 34 | this.info = info
|