Hi all,
The manual says:
auto (the default): this choice delegates to the release mode returned by the org.hibernate.transaction.TransactionFactory.getDefaultReleaseMode() method. For JTATransactionFactory, this returns ConnectionReleaseMode.AFTER_STATEMENT; for JDBCTransactionFactory, this returns ConnectionReleaseMode.AFTER_TRANSACTION.
http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html_single/#transactions-connection-release
According to manual, when I set
Code:
hibernate.connection.release_mode=auto
hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
The actually release mode should be AFTER_TRANSACTION.
But in fact, when I run the application with above configuration, it's behavior does not equal to the same application with following setting
Code:
hibernate.connection.release_mode=AFTER_TRANSACTION
Anything I missed?
My setup information:
hibernate 4.3.8 +
java 8/spring 4.1.4/hikariCP 2.3.2