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