1 | public class Employee {↵ | | 1 | public class ↵
|
2 | private Long id;↵ | | |
|
3 | private Person person;↵ | | |
|
4 | public Person getP↵ | | 2 | Customer extends Person {↵
|
| | | 3 | private Employee salesperson;↵
|
| | | 4 | private String comments;↵
|
|
| | | 5 | /**↵
|
| | | 6 | * @return Returns the salesperson.↵
|
| | | 7 | */↵
|
5 | erson() {↵ | | 8 | public Employee getSalesperson() {↵
|
6 | return person;↵ | | 9 | return salesperson;↵
|
7 | }↵ | | 10 | }↵
|
8 | public void setPerson(Person ↵ | | 11 | /**↵
|
| | | 12 | * @param salesperson The salesperson to set.↵
|
| | | 13 | */↵
|
9 | person) {↵ | | 14 | public void setSalesperson(Employee salesperson) {↵
|
10 | this.person = person;↵ | | 15 | this.salesperson = salesperson;↵
|
11 | }↵ | | 16 | }↵
|
12 | ↵ | | 17 | /**↵
|
| | | 18 | * @return Returns the comments.↵
|
| | | 19 | */↵
|
13 | public Long getId() {↵ | | 20 | public String getComments() {↵
|
14 | return id;↵ | | 21 | return ↵
|
15 | }↵ | | |
|
16 | public void setId(Long id) {↵ | | |
|
17 | this.id = id↵ | | 22 | comments;↵
|
| | | 23 | }↵
|
| | | 24 | /**↵
|
| | | 25 | * @param comments The comments to set.↵
|
| | | 26 | */↵
|
| | | 27 | public void setComments(String comments) {↵
|
18 | ;↵ | | 28 | this.comments = comments;↵
|
19 | | | 29 |
|