1 | public class OneToOneNoProxy {↵ | | 1 | public class Person {↵
|
2 | ↵ | | 2 | ↵
|
3 | private Long entityId;↵ | | 3 | private String name;↵
|
4 | private String name;↵ | | 4 | private String employeeId;↵
|
5 | private EntityWithOneToOnes entity;↵ | | 5 | private E↵
|
|
6 | public OneToOneNoProxy() {}↵ | | |
|
7 | public OneToOneNoProxy↵ | | 6 | mployee employee;↵
|
|
| | | 7 | public Person() {}↵
|
8 | (String name) {↵ | | 8 | public Person(String name) {↵
|
9 | this.name = name;↵ | | 9 | this.name = name;↵
|
10 | }↵ | | 10 | }↵
|
11 | /**↵ | | 11 | ↵
|
12 | * @return Returns the id.↵ | | |
|
13 | */↵ | | |
|
14 | public Long getEntityId() {↵ | | 12 | public ↵
|
15 | return entityId;↵ | | |
|
16 | }↵ | | |
|
17 | /**↵ | | |
|
18 | * @param entityId The id to set.↵ | | |
|
19 | */↵ | | |
|
20 | public void setEntityId(Long entityId) {↵ | | |
|
21 | this.entityId = entityId;↵ | | |
|
22 | }↵ | | |
|
23 | /**↵ | | |
|
24 | * @return Returns the name.↵ | | |
|
25 | */↵ | | 13 | Employee getEmployee() {↵
|
| | | 14 | return employee;↵
|
| | | 15 | }↵
|
| | | 16 | ↵
|
| | | 17 | public void setEmployee(Employee employee) {↵
|
| | | 18 | this.employee = employee;↵
|
| | | 19 | }↵
|
| | | 20 | ↵
|
26 | public String getName() {↵ | | 21 | public String getEmployeeId() {↵
|
27 | return name;↵ | | 22 | return ↵
|
28 | }↵ | | |
|
29 | /**↵ | | |
|
30 | * @param name The name to set.↵ | | |
|
31 | */↵ | | 23 | employeeId;↵
|
| | | 24 | }↵
|
| | | 25 | ↵
|
32 | public void setName(String name) {↵ | | 26 | public void setEmployeeId(String employeeId) {↵
|
33 | this.name = name;↵ | | 27 | this.employeeId = employeeId;↵
|
34 | }↵ | | 28 | }↵
|
35 | ↵ | | 29 | ↵
|
36 | public EntityWithOneToOnes getEntity() {↵ | | 30 | public String getName() {↵
|
37 | return entity;↵ | | 31 | return name;↵
|
38 | }↵ | | 32 | }↵
|
39 | ↵ | | 33 | ↵
|
40 | public void setEntity(EntityWithOneToOnes entity) {↵ | | 34 | public void set↵
|
41 | this.entity = entity | | 35 | Name(String name) {↵
|
| | | 36 | this.name = name
|