An application that uses container-managed transaction demarcation creates a query within an active transaction and receives a QueryTimeoutException. Which of
those scenarios describes what happens to the active transaction?
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?
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?