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