The following example defines a unidirectional one-to-one relationship:
The following error will be shown for setEmployeeRef method:
In this case, 'xxx' is 'addressRef'.
As the message says, define employeeRef field and replace 'xxx' with 'addressRef'. If you do not use GWT, you can use EmployeeMeta.get().addressRef.getName() type-safely instead of "addressRef".
Then delete setEmployeeRef method.
Now let's create an employee and an address.
You can get an address and an employee. The relationship is loaded lazily.
Continue to Unidirectional Many-to-One Relationships.