1 | public class Y {↵ | | 1 | public class Child {↵
|
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String x;↵ | | 3 | private String name;↵
|
4 | private X theX;↵ | | 4 | private Parent parent;↵
|
5 | /**↵ | | 5 | /**↵
|
6 | * Returns the id.↵ | | 6 | * @return Returns the id.↵
|
7 | * @return Long↵ | | 7 | ↵
|
8 | */↵ | | 8 | */↵
|
9 | public Long getId() {↵ | | 9 | public Long getId() {↵
|
10 | return id;↵ | | 10 | return id;↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Returns the x.↵ | | 13 | * ↵
|
14 | * @return String↵ | | |
|
15 | */↵ | | |
|
16 | public String getX() {↵ | | |
|
17 | return x↵ | | 14 | @param id The id to set.↵
|
| | | 15 | */↵
|
| | | 16 | public void setId(Long id) {↵
|
18 | ;↵ | | 17 | this.id = id;↵
|
19 | }↵ | | 18 | }↵
|
|
20 | /**↵ | | 19 | /**↵
|
21 | * Sets the id.↵ | | 20 | * ↵
|
22 | * @param id The id to set↵ | | |
|
23 | */↵ | | |
|
24 | public void setId(Long id) {↵ | | |
|
25 | this.id = id↵ | | 21 | @return Returns the name.↵
|
| | | 22 | */↵
|
| | | 23 | public String getName() {↵
|
26 | ;↵ | | 24 | return name;↵
|
27 | }↵ | | 25 | }↵
|
|
28 | /**↵ | | 26 | /**↵
|
29 | * Sets the x.↵ | | 27 | ↵
|
30 | * @param x The x to set↵ | | 28 | * @param name The name to set.↵
|
31 | */↵ | | 29 | */↵
|
32 | public void setX(String x) {↵ | | 30 | public void setName(String name) {↵
|
33 | this.x = x;↵ | | 31 | this.name = name;↵
|
34 | }↵ | | 32 | }↵
|
|
35 | /**↵ | | 33 | /**↵
|
36 | * @return↵ | | 34 | * @return Returns the parent.↵
|
37 | */↵ | | 35 | */↵
|
38 | public X getTheX() {↵ | | 36 | public Parent getParent() {↵
|
39 | return theX;↵ | | 37 | return parent;↵
|
40 | }↵ | | 38 | }↵
|
|
41 | /**↵ | | 39 | /**↵
|
42 | * @param x↵ | | 40 | * @param parent The parent to set.↵
|
43 | */↵ | | 41 | */↵
|
44 | public void setTheX(X x) {↵ | | 42 | public void set↵
|
45 | theX = x↵ | | 43 | Parent(Parent parent) {↵
|
46 | ;↵ | | 44 | this.parent = parent;↵
|
47 | | | 45 |
|