diff --git a/build.number b/build.number index 0be31367..b284fc3a 100644 --- a/build.number +++ b/build.number @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Fri May 13 20:35:55 CEST 2022 -build.number=16 +#Wed Jul 27 10:22:33 EDT 2022 +build.number=17 \ No newline at end of file diff --git a/source/java/src/org/lucee/extension/orm/hibernate/HibernateORMTransaction.java b/source/java/src/org/lucee/extension/orm/hibernate/HibernateORMTransaction.java index 09b2d2c5..b9a546d2 100755 --- a/source/java/src/org/lucee/extension/orm/hibernate/HibernateORMTransaction.java +++ b/source/java/src/org/lucee/extension/orm/hibernate/HibernateORMTransaction.java @@ -43,23 +43,17 @@ public void rollback() { @Override public void end() { - try { - if (doRollback) { - trans.rollback(); - if (autoManage) { - session.clear(); - } - } - else { - if (trans.getStatus() == TransactionStatus.COMMITTED) { - trans.commit(); - } - session.flush(); + if (doRollback) { + trans.rollback(); + if (autoManage) { + session.clear(); } } - finally { - session.close(); + else { + if (trans.getStatus() == TransactionStatus.COMMITTED) { + trans.commit(); + } + session.flush(); } - } }