default value for hibernate.connection.release_mode is not correct

Description

The docs (http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-optional) says that default value for hibernate.connection.release_mode is "on_close".
But in the source code (3.2.0.cr3) we can see, the default is "auto", which is either "after_transaction" or "after_statement" depending on the TransactionFactory.
See: org.hibernate.cfg.SettingsFactory line 168, org.hibernate.transaction.JDBCTransactionFactory line 19, org.hibernate.transaction.JTATransactionFactory line 61.
See also issue #HHH-1038

Either the docs or defaults should be changed.

Environment

None

Activity

Show:
Steve Ebersole
August 28, 2006, 5:51 PM

make sure you are looking at documentation matching the version you are using

Assignee

Unassigned

Reporter

Pavel Rubin

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure