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