1 | public class MySibling {
↵ | | 1 | public class Group {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private MyEntity entity;↵ | | |
|
|
5 | public MySibling↵ | | 4 | List persons = new ArrayList();↵
|
| | | 5 | private String name;↵
|
|
6 | () {
↵ | | 6 | public Group() {↵
|
7 | }↵ | | 7 | }↵
|
8 |
↵ | | |
|
|
9 | public MySibling(String name) {
↵ | | 8 | public Group(String name) {↵
|
10 | this.name = name;
↵ | | 9 | this.name = name;↵
|
11 | }↵ | | 10 | }↵
|
12 |
↵ | | |
|
|
13 | public Long getId() {
↵ | | 11 | public Long getId() {↵
|
14 | return id;
↵ | | 12 | return id;↵
|
15 | }↵ | | 13 | }↵
|
16 |
↵ | | |
|
|
17 | public void setId(Long id) {
↵ | | 14 | public void setId(Long id) {↵
|
18 | this.id = id;
↵ | | 15 | this.id = id;↵
|
19 | }↵ | | 16 | }↵
|
20 |
↵ | | |
|
|
21 | public String getName() {
↵ | | 17 | public List getPersons() {↵
|
22 | return name;↵ | | 18 | return ↵
|
23 | }↵ | | |
|
24 |
↵ | | 19 | persons;↵
|
| | | 20 | }↵
|
|
25 | public void setName(String name) {
↵ | | 21 | public void setPersons(List persons) {↵
|
26 | this.name = name;↵ | | 22 | this.↵
|
27 | }↵ | | |
|
|
28 | public MyEntity getEntity↵ | | 23 | persons = persons;↵
|
| | | 24 | }↵
|
|
29 | () {
↵ | | 25 | public String getName() {↵
|
30 | return entity;↵ | | 26 | return ↵
|
31 | }↵ | | |
|
32 |
↵ | | 27 | name;↵
|
| | | 28 | }↵
|
|
33 | public void setEntity(MyEntity entity) {
↵ | | 29 | public void setName(String name) {↵
|
34 | this.entity = entity;
↵ | | 30 | this.name = name;↵
|
35 | | | 31 |
|