spring-framework / org.springframework.orm.hibernate5 / HibernateTransactionManager / setAllowResultAccessAfterCompletion

setAllowResultAccessAfterCompletion

open fun setAllowResultAccessAfterCompletion(allowResultAccessAfterCompletion: Boolean): Unit

Set whether to allow result access after completion, typically via Hibernate's ScrollableResults mechanism.

Default is "false". Turning this flag on enforces over-commit holdability on the underlying JDBC Connection (if "prepareConnection" is on) and skips the disconnect-on-completion step.

See Also
Connection#setHoldabilityResultSet#HOLD_CURSORS_OVER_COMMIT#disconnectOnCompletion(Session)