1 | public class MySibling {
↵ | | 1 | public class OneToOneProxy {↵
|
2 | private Long id;
↵ | | 2 | private Long entityId;↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private MyEntity entity;↵ | | 4 | private EntityWithOneToOnes entity;↵
|
5 |
↵ | | |
|
|
6 | public MySibling() {↵ | | 5 | public ↵
|
7 | }↵ | | |
|
|
8 | public MySibling↵ | | 6 | OneToOneProxy() {}↵
|
9 | (String name) {
↵ | | 7 | public OneToOneProxy(String name) {↵
|
10 | this.name = name;
↵ | | 8 | this.name = name;↵
|
11 | }↵ | | 9 | }↵
|
12 |
↵ | | |
|
| | | 10 | /**↵
|
| | | 11 | * @return Returns the id.↵
|
| | | 12 | */↵
|
13 | public Long getId() {
↵ | | 13 | public Long getEntityId() {↵
|
14 | return id;
↵ | | 14 | return entityId;↵
|
15 | }↵ | | 15 | }↵
|
16 |
↵ | | |
|
| | | 16 | /**↵
|
| | | 17 | * @param entityId The id to set.↵
|
| | | 18 | */↵
|
17 | public void setId(Long id) {
↵ | | 19 | public void setEntityId(Long entityId) {↵
|
18 | this.id = id;
↵ | | 20 | this.entityId = entityId;↵
|
19 | }↵ | | 21 | }↵
|
20 |
↵ | | |
|
| | | 22 | /**↵
|
| | | 23 | * @return Returns the name.↵
|
| | | 24 | */↵
|
21 | public String getName() {
↵ | | 25 | public String getName() {↵
|
22 | return name;
↵ | | 26 | return name;↵
|
23 | }↵ | | 27 | }↵
|
24 |
↵ | | |
|
| | | 28 | /**↵
|
| | | 29 | * @param name The name to set.↵
|
| | | 30 | */↵
|
25 | public void setName(String name) {
↵ | | 31 | public void setName(String name) {↵
|
26 | this.name = name;
↵ | | 32 | this.name = name;↵
|
27 | }↵ | | 33 | }↵
|
28 |
↵ | | |
|
29 | public MyEntity getEntity() {
↵ | | 34 | public EntityWithOneToOnes getEntity() {↵
|
30 | return entity;
↵ | | 35 | return entity;↵
|
31 | }↵ | | 36 | }↵
|
32 |
↵ | | |
|
33 | public void setEntity(MyEntity entity) {
↵ | | 37 | public void setEntity(EntityWithOneToOnes entity) {↵
|
34 | this.entity = entity;
↵ | | 38 | this.entity = entity;↵
|
35 | | | 39 |
|