1 | public class EntityWithCrazyCompositeKey {↵ | | 1 | public class E↵
|
2 | private CrazyCompositeKey id;↵ | | |
|
3 | private String name;↵ | | |
|
|
4 | public CrazyCompositeKey↵ | | 2 | mployee implements Serializable {↵
|
| | | 3 | private Integer id;↵
|
| | | 4 | private Collection employers;↵
|
|
|
5 | getId() {↵ | | 5 | public Integer getId() {↵
|
6 | return id;↵ | | 6 | return id;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void setId(CrazyCompositeKey id) {↵ | | 8 | public void setId(Integer integer) {↵
|
9 | this.id = id;↵ | | 9 | id = integer;↵
|
10 | }↵ | | 10 | }↵
|
| | | 11 | ↵
|
| | | 12 | ↵
|
11 | public String getName() {↵ | | 13 | public Collection getEmployers() {↵
|
12 | return name;↵ | | 14 | return employers;↵
|
13 | }↵ | | 15 | }↵
|
| | | 16 | ↵
|
14 | public void setName(String name) {↵ | | 17 | public void setEmployers(Collection employers) {↵
|
15 | this.name = name | | 18 | this.employers = employers
|