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