English | 简体中文

api-docs / org.ktorm.database / SpringManagedTransactionManager / <init>

<init>

SpringManagedTransactionManager(dataSource: DataSource)

TransactionManager implementation that delegates all transactions to the Spring framework.

This class enables the Spring support, and it’s used by Database instances created
by Database.connectWithSpringSupport function. Once the Spring support enabled, the
transaction management will be delegated to the Spring framework, so the Database.useTransaction
function is not available anymore, applications should use Spring’s Transactional annotation instead.