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