1 | public class Parent {↵ | | 1 | public class OneToOneProxy {↵
|
2 | private Long id;↵ | | 2 | private Long entityId;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Collection children = new HashSet();↵ | | 4 | private ↵
|
5 | Parent↵ | | 5 | EntityWithOneToOnes entity;↵
|
|
6 | () {}↵ | | 6 | public OneToOneProxy() {}↵
|
7 | public Parent(String name) {↵ | | 7 | public OneToOneProxy(String name) {↵
|
8 | this.name = name;↵ | | 8 | this.name = name;↵
|
9 | }↵ | | 9 | }↵
|
10 | /**↵ | | 10 | /**↵
|
11 | * @return Returns the children.↵ | | 11 | * @return Returns the id.↵
|
12 | */↵ | | 12 | */↵
|
13 | public Collection getChildren() {↵ | | 13 | public Long getEntityId() {↵
|
14 | return children;↵ | | 14 | return entityId;↵
|
15 | }↵ | | 15 | }↵
|
16 | /**↵ | | 16 | /**↵
|
17 | * @param children The children to set.↵ | | 17 | * @param entityId The id to set.↵
|
18 | */↵ | | 18 | */↵
|
19 | public void setChildren(Collection children) {↵ | | 19 | public void set↵
|
20 | this.children = children↵ | | 20 | EntityId(Long entityId) {↵
|
21 | ;↵ | | 21 | this.entityId = entityId;↵
|
22 | }↵ | | 22 | }↵
|
23 | /**↵ | | 23 | /**↵
|
24 | * @return Returns the id.↵ | | 24 | * @return Returns the name.↵
|
25 | */↵ | | 25 | */↵
|
26 | public Long getId() {↵ | | 26 | public String getName() {↵
|
27 | return id;↵ | | 27 | return name;↵
|
28 | }↵ | | 28 | }↵
|
29 | /**↵ | | 29 | /**↵
|
30 | * @param id The id to set.↵ | | 30 | * @param name The name to set.↵
|
31 | */↵ | | 31 | */↵
|
32 | public void setId(Long id) {↵ | | 32 | public void set↵
|
33 | this.id = id;↵ | | |
|
34 | }↵ | | |
|
35 | /**↵ | | |
|
36 | * @return Returns the↵ | | 33 | Name(String name) {↵
|
37 | name.↵ | | 34 | this.name = name;↵
|
38 | */↵ | | 35 | }↵
|
39 | public String getName() {↵ | | 36 | public ↵
|
40 | return name;↵ | | |
|
41 | }↵ | | |
|
42 | /**↵ | | |
|
43 | * @param name The name to set.↵ | | |
|
44 | */↵ | | |
|
45 | public void setName(String name) {↵ | | |
|
46 | this.name = name | | 37 | EntityWithOneToOnes getEntity() {↵
|
| | | 38 | return entity;↵
|
| | | 39 | }↵
|
| | | 40 | public void setEntity(EntityWithOneToOnes entity) {↵
|
| | | 41 | this.entity = entity
|