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