package org.pdxfinder;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.data.neo4j.transaction.Neo4jTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableTransactionManagement
@EnableNeo4jRepositories("org.pdxfinder.graph.repositories")
public class TestConfig {

    @Bean
    public SessionFactory sessionFactory() {
        return new SessionFactory("org.pdxfinder.*");
    }

    @Bean
    public Neo4jTransactionManager transactionManager() {
        return new Neo4jTransactionManager(sessionFactory());
    }

}


@@ -480,16 +480,24 @@
 itories(
+value = 
 %22org.pdx
@@ -522,16 +522,56 @@
 itories%22
+, sessionFactoryRef = %22mySessionFactory%22
 )%0Apublic
@@ -590,16 +590,18 @@
 onfig %7B%0A
+/*
 %0A    @Be
@@ -700,10 +700,302 @@
 nder
-.*
+%22);%0A    %7D%0A%0A*/%0A    @Bean%0A    public org.neo4j.ogm.config.Configuration getConfiguration() %7B%0A        return new org.neo4j.ogm.config.Configuration.Builder().build();%0A    %7D%0A%0A    @Bean%0A    public SessionFactory sessionFactory() %7B%0A        return new SessionFactory(getConfiguration(), %22org.pdxfinder
 %22);%0A

Add custom sessionFactory