I think this PR is valid: https://github.com/hibernate/hibernate-orm/pull/997
I checked it out and, when using JDBC, we use the ON_CLOSE connection release mode. Shouldn't we use the AFTER_TRANSACTION release mode as we state in the docs? Vlad _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev