4 ms·JPA 2.0 has both optimistic and pessimistic locking.by Aaargh20318 10y agoJPA 2.0 has both optimistic and pessimistic locking.