1.
One to One Mapping
Click on the
association arrow in the
toolbar > Database Mapping > One to One > bi-directional
Then move your mouse on the first class and click.
finally move the link to the second class and click.
The annotation has been added on the getter and the UML editor has been
updated.