1 | public class StateProvince {↵ | | 1 | public class Employee extends Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String name;↵ | | |
|
4 | private String isoCode;↵ | | |
|
| | | 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 | }↵ | | |
|
| | | 18 | title = title;↵
|
| | | 19 | }↵
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the manager.↵
|
| | | 22 | */↵
|
11 | public String getName() {↵ | | 23 | public Employee getManager() {↵
|
12 | return name;↵ | | 24 | return ↵
|
13 | }↵ | | |
|
|
14 | public void setName(String name↵ | | 25 | manager;↵
|
| | | 26 | }↵
|
| | | 27 | /**↵
|
| | | 28 | * @param manager The manager to set.↵
|
| | | 29 | */↵
|
15 | ) {↵ | | 30 | public void setManager(Employee manager) {↵
|
16 | this.name = name;↵ | | 31 | this.manager = ↵
|
17 | }↵ | | |
|
|
18 | public String getIsoCode() {↵ | | |
|
19 | return isoCode;↵ | | |
|
20 | }↵ | | |
|
|
21 | public void setIsoCode(String isoCode↵ | | 32 | manager;↵
|
| | | 33 | }↵
|
| | | 34 | /**↵
|
| | | 35 | * @return Returns the salary.↵
|
| | | 36 | */↵
|
| | | 37 | public BigDecimal getSalary() {↵
|
| | | 38 | return salary;↵
|
| | | 39 | }↵
|
| | | 40 | /**↵
|
| | | 41 | * @param salary The salary to set.↵
|
| | | 42 | */↵
|
22 | ) {↵ | | 43 | public void setSalary(BigDecimal salary) {↵
|
23 | this.isoCode = isoCode;↵ | | 44 | this.salary = salary;↵
|
24 | | | 45 |
|