diff --git a/src/main/java/org/springframework/datastore/graph/neo4j/jpa/Neo4jEntityManager.java b/src/main/java/org/springframework/datastore/graph/neo4j/jpa/Neo4jEntityManager.java index a1bd65228..32925cbe5 100644 --- a/src/main/java/org/springframework/datastore/graph/neo4j/jpa/Neo4jEntityManager.java +++ b/src/main/java/org/springframework/datastore/graph/neo4j/jpa/Neo4jEntityManager.java @@ -38,7 +38,7 @@ public class Neo4jEntityManager implements EntityManager { private final FinderFactory finderFactory; @Resource - private Neo4jEntityManagerFactory neo4jEntityManagerFactory; + private EntityManagerFactory entityManagerFactory; public Neo4jEntityManager(final GraphDatabaseService graphDatabaseService, final EntityInstantiator nodeInstantiator, final PersistenceUnitInfo info, final Map params, final IndexService indexService) { this.graphDatabaseService = graphDatabaseService; @@ -319,7 +319,7 @@ public class Neo4jEntityManager implements EntityManager { @Override public EntityManagerFactory getEntityManagerFactory() { - return neo4jEntityManagerFactory; + return entityManagerFactory; } @Override diff --git a/src/test/resources/org/springframework/datastore/graph/neo4j/spi/Neo4jGraphPersistenceTest-context.xml b/src/test/resources/org/springframework/datastore/graph/neo4j/spi/Neo4jGraphPersistenceTest-context.xml index cdca7a28d..27d784fef 100644 --- a/src/test/resources/org/springframework/datastore/graph/neo4j/spi/Neo4jGraphPersistenceTest-context.xml +++ b/src/test/resources/org/springframework/datastore/graph/neo4j/spi/Neo4jGraphPersistenceTest-context.xml @@ -102,7 +102,7 @@ - + + + + + @@ -126,12 +130,12 @@ - +