1 | public class ProductLine {↵ | | 1 | public class MyEntity {↵
|
| | | 2 |
↵
|
2 | private String id;↵ | | 3 | private Long id;
↵
|
3 | private String description;↵ | | 4 | private String ↵
|
4 | private Set models = new HashSet();↵ | | |
|
5 | ↵ | | 5 | name;↵
|
| | | 6 | private MyEntity other;↵
|
| | | 7 |
↵
|
6 | public String getDescription() {↵ | | 8 | public Long getId() {
↵
|
7 | return description;↵ | | 9 | return ↵
|
8 | }↵ | | 10 | id;↵
|
| | | 11 | }↵
|
| | | 12 |
↵
|
9 | public void setDescription(String description) {↵ | | 13 | public void setId(Long id) {
↵
|
10 | this.description = description;↵ | | 14 | this.↵
|
11 | }↵ | | 15 | id = id;↵
|
| | | 16 | }↵
|
| | | 17 |
↵
|
12 | public String getId() {↵ | | 18 | public String getName() {
↵
|
13 | return id;↵ | | 19 | return ↵
|
14 | }↵ | | 20 | name;↵
|
| | | 21 | }↵
|
| | | 22 |
↵
|
15 | public void setId(String id) {↵ | | 23 | public void setName(String name) {
↵
|
16 | this.id = id;↵ | | 24 | this.↵
|
17 | }↵ | | 25 | name = name;↵
|
| | | 26 | }↵
|
| | | 27 |
↵
|
18 | public Set getModels() {↵ | | 28 | public MyEntity getOther() {
↵
|
19 | return models;↵ | | 29 | return ↵
|
20 | }↵ | | 30 | other;↵
|
| | | 31 | }↵
|
| | | 32 |
↵
|
21 | public void setModels(Set models) {↵ | | 33 | public void setOther(MyEntity other) {
↵
|
22 | this.models = models | | 34 | this.other = other
|