File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/test/java/org/hibernate/test/annotations/entity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 66 */
77package org .hibernate .test .annotations .entity ;
88
9+ import javax .persistence .OptimisticLockException ;
910import java .math .BigDecimal ;
1011import java .util .Currency ;
1112import java .util .Date ;
1617
1718import org .hibernate .AnnotationException ;
1819import org .hibernate .Hibernate ;
19- import org .hibernate .HibernateException ;
2020import org .hibernate .Query ;
2121import org .hibernate .Session ;
2222import org .hibernate .SessionFactory ;
@@ -116,7 +116,7 @@ public void testVersioning() throws Exception {
116116 parallelTx .commit ();
117117 fail ( "All optimistic locking should have make it fail" );
118118 }
119- catch (HibernateException e ) {
119+ catch (OptimisticLockException e ) {
120120 if ( parallelTx != null ) parallelTx .rollback ();
121121 }
122122 finally {
You can’t perform that action at this time.
0 commit comments