1 | public class Person {
↵ | | 1 | public class Child {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private Object data;↵ | | 4 | private ↵
|
|
5 |
↵ | | 5 | Parent parent;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the id.↵
|
| | | 8 | */↵
|
6 | public Long getId() {
↵ | | 9 | public Long getId() {↵
|
7 | return id;
↵ | | 10 | return id;↵
|
8 | }↵ | | 11 | }↵
|
9 |
↵ | | |
|
| | | 12 | /**↵
|
| | | 13 | * @param id The id to set.↵
|
| | | 14 | */↵
|
10 | public void setId(Long id) {
↵ | | 15 | public void setId(Long id) {↵
|
11 | this.id = id;
↵ | | 16 | this.id = id;↵
|
12 | }↵ | | 17 | }↵
|
13 |
↵ | | |
|
| | | 18 | /**↵
|
| | | 19 | * @return Returns the name.↵
|
| | | 20 | */↵
|
14 | public String getName() {
↵ | | 21 | public String getName() {↵
|
15 | return name;
↵ | | 22 | return name;↵
|
16 | }↵ | | 23 | }↵
|
17 |
↵ | | |
|
| | | 24 | /**↵
|
| | | 25 | * @param name The name to set.↵
|
| | | 26 | */↵
|
18 | public void setName(String name) {
↵ | | 27 | public void setName(String name) {↵
|
19 | this.name = name;
↵ | | 28 | this.name = name;↵
|
20 | }↵ | | 29 | }↵
|
21 |
↵ | | |
|
| | | 30 | /**↵
|
| | | 31 | * @return Returns the parent.↵
|
| | | 32 | */↵
|
22 | public Object getData() {
↵ | | 33 | public Parent getParent() {↵
|
23 | return data;↵ | | 34 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 35 | parent;↵
|
| | | 36 | }↵
|
| | | 37 | /**↵
|
| | | 38 | * @param parent The parent to set.↵
|
| | | 39 | */↵
|
26 | public void setData(Object data) {
↵ | | 40 | public void setParent(Parent parent) {↵
|
27 | this.data = data;
↵ | | 41 | this.parent = parent;↵
|
28 | | | 42 |
|