1 | public class Item {↵ | | 1 | public class Child {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private String description;↵ | | 4 | private ↵
|
5 | ↵ | | 5 | Parent parent;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the id.↵
|
| | | 8 | */↵
|
6 | public String getDescription() {↵ | | 9 | public Long getId() {↵
|
7 | return description;↵ | | 10 | return ↵
|
8 | }↵ | | |
|
9 | public void setDescription(String description) {↵ | | |
|
10 | this.description = description;↵ | | |
|
11 | }↵ | | 11 | id;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param id The id to set.↵
|
| | | 15 | */↵
|
| | | 16 | public void setId(Long id) {↵
|
| | | 17 | this.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
|