1 | public class OneToOneNoProxy {↵ | | 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 OneToOneNoProxy() {}↵ | | |
|
6 | public OneToOneNoProxy(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 setEmployments(Collection employments) {↵
|
19 | this.entityId = entityId;↵ | | 21 | this.employments = employments;↵
|
20 | }↵ | | 22 | }↵
|
21 | /**↵ | | 23 | /**↵
|
22 | * @return Returns the name.↵ | | 24 | * @return Returns the id.↵
|
23 | */↵ | | 25 | */↵
|
24 | public String getName() {↵ | | 26 | public long getId() {↵
|
25 | return name;↵ | | 27 | return id;↵
|
26 | }↵ | | 28 | }↵
|
27 | /**↵ | | 29 | /**↵
|
28 | * @param name The name to set.↵ | | 30 | * @param id The id to set.↵
|
29 | */↵ | | 31 | */↵
|
30 | public void setName(String name) {↵ | | 32 | public void set↵
|
31 | this.name =↵ | | 33 | Id(long id) {↵
|
| | | 34 | this.id = id;↵
|
| | | 35 | }↵
|
| | | 36 | /**↵
|
32 | name;↵ | | 37 | * @return Returns the name.↵
|
33 | }↵ | | 38 | */↵
|
34 | public EntityWithOneToOnes getEntity() {↵ | | 39 | public ↵
|
35 | return entity;↵ | | |
|
36 | }↵ | | |
|
37 | public void setEntity(EntityWithOneToOnes entity↵ | | 40 | String getName() {↵
|
| | | 41 | return name;↵
|
| | | 42 | }↵
|
| | | 43 | /**↵
|
| | | 44 | * @param name The name to set.↵
|
| | | 45 | */↵
|
38 | ) {↵ | | 46 | public void setName(String name) {↵
|
39 | this.entity = entity;↵ | | 47 | this.name = name;↵
|
40 | | | 48 |
|