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