1 | public class Account implements Serializable {↵ | | 1 | public class Employee extends Person {↵
|
2 | private String accountId;↵ | | 2 | private String title;↵
|
3 | private Person user;↵ | | 3 | private ↵
|
4 | private char type↵ | | 4 | BigDecimal salary;↵
|
5 | ;↵ | | 5 | private Employee manager;↵
|
6 | /**↵ | | 6 | /**↵
|
7 | * @return Returns the user.↵ | | 7 | * @return Returns the title.↵
|
8 | */↵ | | 8 | */↵
|
9 | public Person getUser() {↵ | | 9 | public String getTitle() {↵
|
10 | return user;↵ | | 10 | return title;↵
|
11 | }↵ | | 11 | }↵
|
12 | /**↵ | | 12 | /**↵
|
13 | * @param user The user to set.↵ | | 13 | * @param title The title to set.↵
|
14 | */↵ | | 14 | */↵
|
15 | public void setUser(Person user) {↵ | | 15 | public void set↵
|
16 | this.user = user↵ | | 16 | Title(String title) {↵
|
17 | ;↵ | | 17 | this.title = title;↵
|
18 | }↵ | | 18 | }↵
|
19 | /**↵ | | 19 | /**↵
|
20 | * @return Returns the accountId.↵ | | 20 | * @return Returns the manager.↵
|
21 | */↵ | | 21 | */↵
|
22 | public String getAccountId() {↵ | | 22 | public Employee getManager() {↵
|
23 | return accountId;↵ | | 23 | return manager;↵
|
24 | }↵ | | 24 | }↵
|
25 | /**↵ | | 25 | /**↵
|
26 | * @param accountId The accountId to set.↵ | | 26 | * @param manager The manager to set.↵
|
27 | */↵ | | 27 | */↵
|
28 | public void setAccountId(String accountId) {↵ | | 28 | public void setManager(Employee manager) {↵
|
29 | this.accountId = accountId;↵ | | 29 | this.manager = manager;↵
|
30 | }↵ | | 30 | }↵
|
31 | /**↵ | | 31 | /**↵
|
32 | * @return Returns the type.↵ | | 32 | * @return Returns the salary.↵
|
33 | */↵ | | 33 | */↵
|
34 | public char getType() {↵ | | 34 | public BigDecimal getSalary() {↵
|
35 | return type;↵ | | 35 | return salary;↵
|
36 | }↵ | | 36 | }↵
|
37 | /**↵ | | 37 | /**↵
|
38 | * @param type The type to set.↵ | | 38 | * @param salary The salary to set.↵
|
39 | */↵ | | 39 | */↵
|
40 | public void setType(char type) {↵ | | 40 | public void set↵
|
41 | this.type = type | | 41 | Salary(BigDecimal salary) {↵
|
| | | 42 | this.salary = salary
|