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