one-to-one annotation in a POJO:
one-to-one element in a Hibernate mapping file:
If you have a set of Java classes which are interdependent on each other, you could use the "Add Hibernate/JPA Annotations..." action to automatically detect relationships which exist between these POJOs and add corresponding annotations to the classes.
Annotations can be added either to getters or fields in the Java classes:
Use the Preview to preview changes before applying them: