Package org.springframework.data.transaction

Examples of org.springframework.data.transaction.ChainedTransactionManager


  public PlatformTransactionManager neo4jTransactionManager(GraphDatabaseService graphDatabaseService) {
        JtaTransactionManager jtaTm = new JtaTransactionManagerFactoryBean( graphDatabaseService ).getObject();

    if (isUsingCrossStorePersistence()) {
      JpaTransactionManager jpaTm = new JpaTransactionManager(getEntityManagerFactory());
      return new ChainedTransactionManager(jpaTm, jtaTm);
    }
    else {
            return jtaTm;
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.transaction.ChainedTransactionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.