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