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