Example usage for org.springframework.data.repository.util TxUtils DEFAULT_TRANSACTION_MANAGER

List of usage examples for org.springframework.data.repository.util TxUtils DEFAULT_TRANSACTION_MANAGER

Introduction

In this page you can find the example usage for org.springframework.data.repository.util TxUtils DEFAULT_TRANSACTION_MANAGER.

Prototype

String DEFAULT_TRANSACTION_MANAGER

To view the source code for org.springframework.data.repository.util TxUtils DEFAULT_TRANSACTION_MANAGER.

Click Source Link

Usage

From source file:com.sinosoft.one.data.jpa.repository.support.OneTransactionalRepositoryFactoryBeanSupport.java

/**
 * Setter to configure which transaction manager to be used. We have to use the bean name explicitly as otherwise the
 * qualifier of the {@link org.springframework.transaction.annotation.Transactional} annotation is used. By explicitly
 * defining the transaction manager bean name we favour let this one be the default one chosen.
 *
 * @param transactionManager//from   w  ww.ja  v a2  s. com
 */
public void setTransactionManager(String transactionManager) {

    this.transactionManagerName = transactionManager == null ? TxUtils.DEFAULT_TRANSACTION_MANAGER
            : transactionManager;
}