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