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