Skip to content

Commit 3bebb5b

Browse files
committed
GH-2462 - Trying things out.
1 parent fd37992 commit 3bebb5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/springframework/data/neo4j/core/mapping/DefaultNeo4jEntityConverter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ private <ET> void populateProperties(MapAccessor queryResult, Neo4jPersistentEnt
349349
if (nodeDescription != concreteNodeDescription) {
350350
nodeDescription.doWithAssociations(
351351
populateFrom(queryResult, propertyAccessor, isConstructorParameter, objectAlreadyMapped, relationshipsFromResult, nodesFromResult));
352+
353+
// check intermediate types
354+
NodeDescription<?> parentNodeDescription = concreteNodeDescription.getParentNodeDescription();
355+
while (parentNodeDescription != null && parentNodeDescription != concreteNodeDescription) {
356+
nodeDescription.doWithAssociations(
357+
populateFrom(queryResult, propertyAccessor, isConstructorParameter, objectAlreadyMapped, relationshipsFromResult, nodesFromResult));
358+
parentNodeDescription = parentNodeDescription.getParentNodeDescription();
359+
}
352360
}
353361
concreteNodeDescription.doWithAssociations(
354362
populateFrom(queryResult, propertyAccessor, isConstructorParameter, objectAlreadyMapped, relationshipsFromResult, nodesFromResult));

0 commit comments

Comments
 (0)