Which Spring exception maps onto org.hibernate.StaleObjectStateException ?
We have a DAO that is annotated with
@Repository
We have an enitity that has a property annotated with
@Version
When the optimistic locking fails, a Spring exception is thrown, but I can’t figure out which one.
It must be
HibernateOptimisticLockingFailureException, but testing it is as simple as calling a reporisoty method which only does