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