1 | public class MySibling {↵ | | 1 | public class Customer {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private MyEntity entity;↵ | | 4 | private Collection orders = new ArrayList();↵
|
|
5 | public MySibling() {↵ | | 5 | public Customer() {↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public MySibling(String name) {↵ | | 7 | public Customer(String name) {↵
|
8 | this.name = name;↵ | | 8 | this.name = name;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public Long getId() {↵ | | 10 | public Long getId() {↵
|
11 | return id;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void setId(Long id) {↵ | | 13 | public void setId(Long id) {↵
|
14 | this.id = id;↵ | | 14 | this.id = id;↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public String getName() {↵ | | 16 | public String getName() {↵
|
17 | return name;↵ | | 17 | return name;↵
|
18 | }↵ | | 18 | }↵
|
|
19 | public void setName(String name) {↵ | | 19 | public void setName(String name) {↵
|
20 | this.name = name;↵ | | 20 | this.name = name;↵
|
21 | }↵ | | 21 | }↵
|
|
22 | public MyEntity getEntity() {↵ | | 22 | public Collection getOrders() {↵
|
23 | return entity;↵ | | 23 | return orders;↵
|
24 | }↵ | | 24 | }↵
|
|
25 | public void setEntity(MyEntity entity) {↵ | | 25 | public void set↵
|
26 | this.entity = entity | | 26 | Orders(Collection orders) {↵
|
| | | 27 | this.orders = orders
|