diff --git a/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/mapping/Neo4JPersistentPropertyImpl.java b/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/mapping/Neo4JPersistentPropertyImpl.java index 5532026c1..631586157 100644 --- a/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/mapping/Neo4JPersistentPropertyImpl.java +++ b/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/mapping/Neo4JPersistentPropertyImpl.java @@ -74,7 +74,7 @@ class Neo4jPersistentPropertyImpl extends AbstractPersistentProperty, Neo4jPersistentProperty> { + private final Map referenceAnnotations = new IdentityHashMap(); + protected Neo4jPersistentEntityImpl createPersistentEntity(TypeInformation typeInformation) { final Class type = typeInformation.getType(); if (type.isAnnotationPresent(NodeEntity.class)) { @@ -171,4 +170,16 @@ public class Neo4jMappingContext extends AbstractMappingContext