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