JPA 2.0 Locking Features - 2

Moderator: admin

Post Reply
javajeecert

JPA 2.0 Locking Features - 2

Post by javajeecert »

A named query that sets an exclusive pessimistic on the entities returned by the query
by setting the NamedQuery lockMode element to LockModeType.PESSIMISTIC_FORCE_INCREMENT. The application starts transaction and executes the query. Which of the following statements is correct about the entities returned by the query?


A. Only the current transition may modify or delete the entity instances.
B. The current transaction may NOT modify or delete the entity instances.
C. Other concurrent transactions may modify or delete the entity instances.
D. Other concurrent transactions may modify but MAY NOT delete the entity instances.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests