Quiz on Hibernate One-to-One Mapping



1. What is the main purpose of one-to-one mapping in Hibernate?
2. Which annotation is commonly used to define a one-to-one relationship in Hibernate?
3. In a one-to-one mapping, which side is typically considered the owner of the relationship?
4. What does the 'cascade' attribute do in a one-to-one mapping?
5. Which XML element can be used to configure one-to-one mapping in Hibernate?

Advertisements