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