1 | public class Parent {↵ | | 1 | public class Employee extends Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private Set deleteOrphanChildren;↵ | | |
|
4 | private Set children;↵ | | |
|
| | | 3 | String title;↵
|
| | | 4 | private BigDecimal salary;↵
|
| | | 5 | private Employee manager;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the title.↵
|
| | | 8 | */↵
|
5 | public Long getId() {↵ | | 9 | public String getTitle() {↵
|
6 | return id;↵ | | 10 | return ↵
|
7 | }↵ | | |
|
| | | 11 | title;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param title The title to set.↵
|
| | | 15 | */↵
|
8 | public void setId(Long id) {↵ | | 16 | public void setTitle(String title) {↵
|
9 | this.id = id;↵ | | 17 | this.↵
|
10 | }↵ | | |
|
|
11 | public Set getDeleteOrphanChildren() {↵ | | |
|
12 | return deleteOrphanChildren;↵ | | |
|
13 | }↵ | | |
|
|
14 | public void setDeleteOrphanChildren(Set deleteOrphanChildren) {↵ | | |
|
15 | this.deleteOrphanChildren = deleteOrphanChildren;↵ | | |
|
16 | }↵ | | |
|
|
17 | public Set getChildren() {↵ | | |
|
18 | return children;↵ | | |
|
19 | }↵ | | |
|
|
20 | public void setChildren(Set children) {↵ | | |
|
21 | this.children = children | | 18 | title = title;↵
|
| | | 19 | }↵
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the manager.↵
|
| | | 22 | */↵
|
| | | 23 | public Employee getManager() {↵
|
| | | 24 | return manager;↵
|
| | | 25 | }↵
|
| | | 26 | /**↵
|
| | | 27 | * @param manager The manager to set.↵
|
| | | 28 | */↵
|
| | | 29 | public void setManager(Employee manager) {↵
|
| | | 30 | this.manager = manager;↵
|
| | | 31 | }↵
|
| | | 32 | /**↵
|
| | | 33 | * @return Returns the salary.↵
|
| | | 34 | */↵
|
| | | 35 | public BigDecimal getSalary() {↵
|
| | | 36 | return salary;↵
|
| | | 37 | }↵
|
| | | 38 | /**↵
|
| | | 39 | * @param salary The salary to set.↵
|
| | | 40 | */↵
|
| | | 41 | public void setSalary(BigDecimal salary) {↵
|
| | | 42 | this.salary = salary
|