WhichEntityManager API will lock entity with a pessimistic lock?

WhichEntityManager API will lock entity with a pessimistic lock?
A. em.lock(x,LockModeType.WRITE)
B. em.lock(x,LockModeType.PESSIMISTIC)
C. em.lock(x,LockModeType.PESSIMISTIC_READ)
D. em.lock(x,LockModeType.OPTIMISTIC_FORCE_INCREMENT)

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.