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