Re: [hibernate-dev] Possible regression on master

2016-05-17 Thread Vlad Mihalcea
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

Re: [hibernate-dev] Possible regression on master

2016-05-17 Thread andrea boriero
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

[hibernate-dev] Possible regression on master

2016-05-17 Thread Vlad Mihalcea
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