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