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