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