1 | public class Employee extends Person {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Group {↵
|
3 | private String title;↵ | | 3 | private ↵
|
4 | private String department;↵ | | |
|
5 | private Employee manager;↵ | | |
|
6 | private Set minions = new HashSet()↵ | | 4 | Long id;↵
|
| | | 5 | private Date timestamp;↵
|
| | | 6 | private String name;↵
|
7 | ;↵ | | 7 | private Set users;↵
|
|
8 | public Employee() {↵ | | 8 | public Group() {↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public Employee(String name) {↵ | | 10 | public Group(String name) {↵
|
11 | super( name );↵ | | 11 | this.name = name;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public String getTitle() {↵ | | 13 | public Long getId() {↵
|
14 | return title;↵ | | 14 | return id;↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public void setTitle(String title) {↵ | | 16 | public void setId(Long id) {↵
|
17 | this.title = title;↵ | | 17 | this.id = id;↵
|
18 | }↵ | | 18 | }↵
|
|
19 | public String getDepartment() {↵ | | 19 | public Date getTimestamp() {↵
|
20 | return department;↵ | | 20 | return timestamp;↵
|
21 | }↵ | | 21 | }↵
|
|
22 | public void setDepartment(String department) {↵ | | 22 | public void setTimestamp(Date timestamp) {↵
|
23 | this.department = department;↵ | | 23 | this.timestamp = timestamp;↵
|
24 | }↵ | | 24 | }↵
|
|
25 | public Employee getManager() {↵ | | 25 | public String getName() {↵
|
26 | return manager;↵ | | 26 | return name;↵
|
27 | }↵ | | 27 | }↵
|
|
28 | public void setManager(Employee manager) {↵ | | 28 | public void setName(String name) {↵
|
29 | this.manager = manager;↵ | | 29 | this.name = name;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | public Set getMinions() {↵ | | 31 | public Set getUsers() {↵
|
32 | return minions;↵ | | 32 | return users;↵
|
33 | }↵ | | 33 | }↵
|
|
34 | public void setMinions(Set minions) {↵ | | 34 | public void set↵
|
35 | this.minions = minion↵ | | 35 | Users(Set users) {↵
|
36 | s;↵ | | 36 | this.users = users;↵
|
37 | | | 37 |
|