SpringTransactionFactory

public SpringTransactionFactory()

Method Detail

getDefaultReleaseMode

public org.hibernate.ConnectionReleaseMode getDefaultReleaseMode()

Sets connection release mode "on_close" as default.

This was the case for Hibernate 3.0; Hibernate 3.1 changed
it to "auto" (i.e. "after_statement" or "after_transaction").
However, for Spring's resource management (in particular for
HibernateTransactionManager), "on_close" is the better default.