Given two entities with one to-one association:@Entity public class Person {@Id Integer id;}@Entity public class PersonDetail {@Id Integer id;}Which code fragment correctly defines the detail field that PersonDetail instance in removed if the person instance that references it is removed?
An entity person is mapped to a table PERSON and has a collection-valued persistence field otherUsedNames that stores names used by a person. The otherUsedNames field is mapped to a separate table called NAMES. Which code fragment correctly defines such field?
Which statement is true about the @OrderColumn annotation?
Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?
The developer wants to define a unidirectional relationship from the customer entity to the order entity and map this relationship using a foreign key mapping strategy.Which one of the pairs of classes below correctly achieves this task?
Entity lifecycle callback methods may be defined in which three classes? (Choose three)