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