Or we could add the:
Object get(Class entityClass, Serializable id);
method to SharedSessionContract since both SessionImpl and
StatelessSessionImpl implement it.
This way we can call:
entity = sharedSessionContract.get( sose.getEntityName(), identifier );
and leave the current check which ve
what about adding a
catch(ObjectNotFoundException onfe){
pe = new OptimisticLockException( e.getMessage, e);
}
to the existing try/catch that encloses the entity =
sharedSessionContract.load( sose.getEntityName(), identifier ) ?
On 17 May 2016 at 13:32, Vlad Mihalcea wrote:
> Hi,
>
> While fi
Hi,
While fixing tests for Oracle after rebasing my branch, I realized that the
org.hibernate.test.optlock.OptimisticLockTest > testOptimisticLockAllDelete
fails on Oracle10gDialect, while running just fine on H2.
When reaching the following branching logic in AbstractEntityPersister:
if ( useBa