From 10bea7a1b91ba3fd152a348f12efcc3aa47d99ae Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Sat, 11 Sep 2010 10:45:07 +0200 Subject: [PATCH] fixed EM 2.0 issue --- .../graph/neo4j/jpa/Neo4jEntityManager.java | 4 ++-- .../neo4j/spi/Neo4jGraphPersistenceTest-context.xml | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) 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 @@ - +