HHH-7412 - JDBCTransactionFactory.getDefaultReleaseMode() returns incorrect ConnectionReleaseMode

Document that JDBC transactions use ON_CLOSE connection release mode
This commit is contained in:
Vlad Mihalcea 2016-03-23 09:12:47 +02:00
parent 0d5c35cdbc
commit e1fa1647fb
1 changed files with 1 additions and 1 deletions

View File

@ -1090,7 +1090,7 @@ session.close();]]></programlisting>
<literal>auto</literal> (the default): this choice delegates to the release mode
returned by the <literal>org.hibernate.transaction.TransactionFactory.getDefaultReleaseMode()</literal>
method. For JTATransactionFactory, this returns ConnectionReleaseMode.AFTER_STATEMENT; for
JDBCTransactionFactory, this returns ConnectionReleaseMode.AFTER_TRANSACTION. Do not
JDBCTransactionFactory, this returns ConnectionReleaseMode.ON_CLOSE. Do not
change this default behavior as failures due to the value of this setting
tend to indicate bugs and/or invalid assumptions in user code.
</para>