brightinteractive/bright-hibernate — Issue #1: Optimistic Locking
Author: frankoid
Created: 2012-01-31 10:01:27+00:00
State: open

Hibernate has support for optimistic locking (verifying the entity version near transaction end) via LockMode.OPTIMISTIC / LockMode.OPTIMISTIC_FORCE_INCREMENT.

Should we be using it?

If so does bright-hibernate need to be changed (e.g. GenericHibernateDao.findById might need to use one of the optimistic lock modes).