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