1 | public class Part implements Serializable {↵ | | 1 | public static class Id implements Serializable {↵
|
2 | private String name;↵ | | 2 | private KeyManyToOneKeyEntity key1;↵
|
3 | private String description;↵ | | 3 | private String key2;↵
|
|
4 | public Part() {↵ | | 4 | public ↵
|
5 | }↵ | | |
|
|
6 | public Part(String name) {↵ | | 5 | Id(KeyManyToOneKeyEntity key1, String key2) {↵
|
7 | this.name = name;↵ | | 6 | this.↵
|
| | | 7 | key1 = key1;↵
|
| | | 8 | this.key2 = key2;↵
|
8 | }↵ | | 9 | }↵
|
|
9 | public Part(String name, String description) {↵ | | 10 | public ↵
|
10 | this.name = name;↵ | | |
|
11 | this.description = description↵ | | 11 | KeyManyToOneKeyEntity getKey1() {↵
|
12 | ;↵ | | 12 | return key1;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public String getName() {↵ | | 14 | public ↵
|
15 | return name↵ | | 15 | void setKey1(KeyManyToOneKeyEntity key1) {↵
|
16 | ;↵ | | 16 | this.key1 = key1;↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public String getDescription() {↵ | | 18 | public String getKey2() {↵
|
19 | return description;↵ | | 19 | return key2;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public void setDescription(String description) {↵ | | 21 | public void setKey2(String key2) {↵
|
22 | this.description = description;↵ | | 22 | this.key2 = key2;↵
|
23 | | | 23 |
|