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