Package org.springframework.data.neo4j.config

Examples of org.springframework.data.neo4j.config.JtaTransactionManagerFactoryBean


  @Bean public Neo4jMappingContext neo4jMappingContext() {
    return new Neo4jMappingContext();
  }

  @Bean public JtaTransactionManagerFactoryBean transactionManager() throws Exception {
    return new JtaTransactionManagerFactoryBean(graphDatabaseService());
  }
View Full Code Here


    }
  }

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

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

TOP

Related Classes of org.springframework.data.neo4j.config.JtaTransactionManagerFactoryBean

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.