1 | public class Parent {↵ | | 1 | public class Parent {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String name;↵ | | |
|
4 | private Collection c↵ | | 3 | String name;↵
|
| | | 4 | private List children = new ArrayList();↵
|
5 | hildren = new HashSet();↵ | | 5 | private List moreChildren = new ArrayList();↵
|
6 | ↵ | | 6 | ↵
|
7 | Parent() {}↵ | | 7 | Parent() {}↵
|
8 | public Parent(String name) {↵ | | 8 | public Parent(String name) {↵
|
9 | this.name = name;↵ | | 9 | this.name = name;↵
|
10 | }↵ | | 10 | }↵
|
11 | /**↵ | | |
|
12 | * @return Returns the children.↵ | | |
|
13 | */↵ | | |
|
14 | public Collection getChildren() {↵ | | |
|
15 | return children;↵ | | |
|
16 | }↵ | | |
|
17 | /**↵ | | |
|
18 | * @param children The children to set.↵ | | |
|
19 | */↵ | | |
|
20 | public void setChildren(Collection children) {↵ | | |
|
21 | this.children = children;↵ | | |
|
22 | }↵ | | |
|
23 | /**↵ | | |
|
24 | * @return Returns the id.↵ | | |
|
25 | */↵ | | |
|
| | | 11 | public String getName() {↵
|
| | | 12 | return name;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
| | | 15 | public void setName(String name) {↵
|
| | | 16 | this.name = name;↵
|
| | | 17 | }↵
|
|
26 | public Long getId() {↵ | | 18 | public List getChildren() {↵
|
27 | return id;↵ | | 19 | return ↵
|
28 | }↵ | | |
|
29 | /**↵ | | |
|
30 | * @param id The id to set.↵ | | |
|
31 | */↵ | | |
|
32 | public void setId(Long id↵ | | 20 | children;↵
|
| | | 21 | }↵
|
|
33 | ) {↵ | | 22 | public void setChildren(List children) {↵
|
34 | this.id = id;↵ | | 23 | this.↵
|
35 | }↵ | | |
|
36 | /**↵ | | |
|
37 | * @return Returns the name.↵ | | |
|
38 | */↵ | | 24 | children = children;↵
|
| | | 25 | }↵
|
| | | 26 | ↵
|
39 | public String getName() {↵ | | 27 | public ↵
|
40 | return name;↵ | | |
|
41 | }↵ | | |
|
42 | /**↵ | | |
|
43 | * @param name The name to set.↵ | | |
|
44 | */↵ | | |
|
45 | public void setName(String name) {↵ | | |
|
46 | this.name = name↵ | | 28 | List getMoreChildren() {↵
|
| | | 29 | return moreChildren;↵
|
| | | 30 | }↵
|
| | | 31 | ↵
|
| | | 32 | public void setMoreChildren(List moreChildren) {↵
|
47 | ;↵ | | 33 | this.moreChildren = moreChildren;↵
|
48 | | | 34 |
|