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