doc release_mode

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6681 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-05-04 00:36:46 +00:00
parent 13f00214e4
commit 25fda5f095
1 changed files with 2 additions and 1 deletions

View File

@ -675,7 +675,7 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
Specify when Hibernate should release JDBC connections. By default, Specify when Hibernate should release JDBC connections. By default,
a JDBC connection is held until the session is explicitly closed or a JDBC connection is held until the session is explicitly closed or
disconnected. For an application server JTA datasource, you should use disconnected. For an application server JTA datasource, you should use
<literal>after_statement</literal>, to aggressively release connections <literal>after_statement</literal> to aggressively release connections
after every JDBC call. For a non-JTA connection, it often makes sense to after every JDBC call. For a non-JTA connection, it often makes sense to
release the connection at the end of each transaction, by using release the connection at the end of each transaction, by using
<literal>after_transaction</literal>. <literal>auto</literal> will <literal>after_transaction</literal>. <literal>auto</literal> will
@ -683,6 +683,7 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
strategies and <literal>after_transaction</literal> for the JDBC strategies and <literal>after_transaction</literal> for the JDBC
transaction strategy. transaction strategy.
<para> <para>
<emphasis role="strong">eg.</emphasis>
<literal>on_close</literal> | <literal>after_transaction</literal> | <literal>on_close</literal> | <literal>after_transaction</literal> |
<literal>after_statement</literal> | <literal>auto</literal> <literal>after_statement</literal> | <literal>auto</literal>
</para> </para>