A Java Persistence application wants to use optimistic locking. Which statement that describes the
functionality of optimistic locking is correct?
A.
The Version attribute of an entity using optimistic locking can be mapped to a secondary table.
B.
Optimistic locking can be used by Java Persistence applications to set optimistic locks on
tables in the database.
C.
The Version attribute of an entity using optimistic locking is verified each time the instance is
loaded from the database.
D.
Optimistic locking ensures that updates or deletes are consistent with the current state of the
database and that intervening updates are not lost.
Explanation: