Just to be sure that I understand correctly how everything works.
If I do em.lock(employee, LockModeType.PESSIMISTIC_WRITE); - will it only block this object ( employee ) or the entire Employees table?
If that matters, I'm talking about PostgreSQL .
source share