Google News
logo
Java Hibernates - Interview Questions
What is a One-to-One association in Hibernate?
* It is similar to the many-to-one association and the difference lies in the column that will be set as a unique one.The many-to-one element is used to define one-to-one association.

* To the defined variable a name attribute is set in the parent class and the column attribute is used to set column name in the parent table, which is unique so that only one object gets associated with another.
Advertisement