1 | public class Entity {
↵ | | 1 | public class EntityWithOneToOnes {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private Entity child;↵ | | 4 | private ↵
|
5 | private Entity sibling;↵ | | |
|
6 |
↵ | | 5 | OneToOneNoProxy oneToOneNoProxy;↵
|
| | | 6 | private OneToOneProxy oneToOneProxy;↵
|
|
7 | public Entity() {
↵ | | 7 | public EntityWithOneToOnes() {↵
|
8 | }↵ | | 8 | }↵
|
9 |
↵ | | |
|
|
10 | public Entity(String name) {
↵ | | 9 | public EntityWithOneToOnes(String name) {↵
|
11 | this.name = name;
↵ | | 10 | this.name = name;↵
|
12 | }↵ | | 11 | }↵
|
13 |
↵ | | |
|
|
14 | public Long getId() {
↵ | | 12 | public Long getId() {↵
|
15 | return id;
↵ | | 13 | return id;↵
|
16 | }↵ | | 14 | }↵
|
17 |
↵ | | |
|
|
18 | public void setId(Long id) {
↵ | | 15 | public void setId(Long id) {↵
|
19 | this.id = id;
↵ | | 16 | this.id = id;↵
|
20 | }↵ | | 17 | }↵
|
21 |
↵ | | |
|
|
22 | public String getName() {
↵ | | 18 | public String getName() {↵
|
23 | return name;
↵ | | 19 | return name;↵
|
24 | }↵ | | 20 | }↵
|
25 |
↵ | | |
|
|
26 | public void setName(String name) {
↵ | | 21 | public void setName(String name) {↵
|
27 | this.name = name;
↵ | | 22 | this.name = name;↵
|
28 | }↵ | | 23 | }↵
|
29 |
↵ | | |
|
|
30 | public Entity getChild() {
↵ | | 24 | public OneToOneNoProxy getOneToOneNoProxy() {↵
|
31 | return child;↵ | | 25 | return ↵
|
32 | }↵ | | |
|
|
33 | public void setChild(Entity child↵ | | 26 | oneToOneNoProxy;↵
|
| | | 27 | }↵
|
|
34 | ) {
↵ | | 28 | public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) {↵
|
35 | this.child = child;↵ | | 29 | this.↵
|
36 | }↵ | | |
|
|
37 | public Entity getSibling↵ | | 30 | oneToOneNoProxy = oneToOneNoProxy;↵
|
| | | 31 | }↵
|
|
38 | () {
↵ | | 32 | public OneToOneProxy getOneToOneProxy() {↵
|
39 | return sibling;↵ | | 33 | return ↵
|
40 | }↵ | | |
|
|
41 | public void setSibling(Entity sibling↵ | | 34 | oneToOneProxy;↵
|
| | | 35 | }↵
|
|
42 | ) {
↵ | | 36 | public void setOneToOneProxy(OneToOneProxy oneToOneProxy) {↵
|
43 | this.sibling = sibling | | 37 | this.oneToOneProxy = oneToOneProxy
|