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