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