1 | public static class Id implements Serializable {↵ | | 1 | public class Item {↵
|
2 | ↵ | | |
|
3 | private KeyManyToOneKeyEntity key1;↵ | | 2 | private String code;↵
|
4 | private String key2;↵ | | 3 | private Product product;↵
|
| | | 4 | ↵
|
5 | public Id(KeyManyToOneKeyEntity key1, String key2↵ | | 5 | ↵
|
| | | 6 | Item() {}↵
|
6 | ) {↵ | | 7 | public Item(String code, Product p) {↵
|
7 | this.key1 = key1;↵ | | 8 | this.code = code;↵
|
8 | this.key2 = key2;↵ | | 9 | this.product = p;↵
|
9 | }↵ | | 10 | }↵
|
|
10 | public KeyManyToOneKeyEntity getKey1() {↵ | | 11 | public String getCode() {↵
|
11 | return key1;↵ | | 12 | return ↵
|
12 | }↵ | | |
|
| | | 13 | code;↵
|
| | | 14 | }↵
|
13 | ↵ | | 15 | ↵
|
14 | public void setKey1(KeyManyToOneKeyEntity key1) {↵ | | 16 | public void setCode(String code) {↵
|
15 | this.key1 = key1;↵ | | 17 | this.code = code;↵
|
16 | }↵ | | 18 | }↵
|
| | | 19 | ↵
|
17 | public String getKey2() {↵ | | 20 | public Product getProduct() {↵
|
18 | return key2;↵ | | 21 | return product;↵
|
19 | }↵ | | 22 | }↵
|
|
20 | ↵ | | 23 | ↵
|
21 | public void setKey2(String key2) {↵ | | 24 | public void setProduct(Product product) {↵
|
22 | this.key2 = key2;↵ | | 25 | this.product = product;↵
|
23 | | | 26 |
|