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