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