1 | public class Item {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Child {↵
|
3 | private Long id;↵ | | 3 | private Long id;↵
|
4 | private String name;↵ | | 4 | private String name;↵
|
5 | private String description;↵ | | 5 | private ↵
|
|
6 | ↵ | | 6 | Parent parent;↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the id.↵
|
| | | 9 | */↵
|
7 | public String getDescription() {↵ | | 10 | public Long get↵
|
8 | return description;↵ | | |
|
9 | }↵ | | |
|
|
10 | public void setDescription(String description) {↵ | | |
|
11 | this.description = description;↵ | | |
|
12 | }↵ | | |
|
|
13 | ↵ | | 11 | Id() {↵
|
| | | 12 | return id;↵
|
| | | 13 | }↵
|
| | | 14 | /**↵
|
| | | 15 | * @param id The id to set.↵
|
| | | 16 | */↵
|
| | | 17 | public void setId(Long id) {↵
|
| | | 18 | this.id = id;↵
|
| | | 19 | }↵
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the name.↵
|
| | | 22 | */↵
|
14 | public Long getId() {↵ | | 23 | public String getName() {↵
|
15 | return id;↵ | | |
|
16 | }↵ | | |
|
|
17 | public void setId(Long id) {↵ | | |
|
18 | this.id = id;↵ | | |
|
19 | }↵ | | |
|
|
20 | public String getName() {↵ | | |
|
21 | return name;↵ | | |
|
22 | }↵ | | |
|
|
23 | public void setName(String name) {↵ | | |
|
24 | this.name = name;↵ | | |
|
25 | | | 24 | return name;↵
|
| | | 25 | }↵
|
| | | 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 | */↵
|
| | | 35 | public Parent getParent() {↵
|
| | | 36 | return parent;↵
|
| | | 37 | }↵
|
| | | 38 | /**↵
|
| | | 39 | * @param parent The parent to set.↵
|
| | | 40 | */↵
|
| | | 41 | public void setParent(Parent parent) {↵
|
| | | 42 | this.parent = parent;↵
|
| | | 43 |
|