1 | public class Item {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Employee extends Person {↵
|
3 | private Long id;↵ | | 3 | private ↵
|
4 | private String name;↵ | | |
|
5 | private String description;↵ | | |
|
|
6 | public String getDescription() {↵ | | |
|
7 | return description;↵ | | |
|
8 | }↵ | | |
|
|
9 | ↵ | | 4 | String title;↵
|
| | | 5 | private BigDecimal salary;↵
|
| | | 6 | private Employee manager;↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the title.↵
|
| | | 9 | */↵
|
| | | 10 | public String getTitle() {↵
|
| | | 11 | return title;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param title The title to set.↵
|
| | | 15 | */↵
|
10 | public void setDescription(String description) {↵ | | 16 | public void set↵
|
11 | this.description = description;↵ | | |
|
12 | }↵ | | |
|
|
13 | public Long getId() {↵ | | |
|
14 | return id;↵ | | |
|
15 | }↵ | | |
|
|
16 | public void setId(Long id) {↵ | | |
|
17 | this.id = id;↵ | | |
|
18 | }↵ | | |
|
|
19 | public String getName() {↵ | | |
|
20 | return name;↵ | | |
|
21 | }↵ | | |
|
|
22 | public void setName(String name) {↵ | | |
|
23 | this.name = name | | 17 | Title(String title) {↵
|
| | | 18 | this.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
|