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