DATAJDBC-142 - Using getName instead of getColumnName for constructing PropertyPaths.

This commit is contained in:
Jens Schauder
2018-02-06 10:52:00 +01:00
committed by Greg Turnquist
parent 964f319ae6
commit 31eeba743f
2 changed files with 85 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ public class JdbcMappingContext extends AbstractMappingContext<JdbcPersistentEnt
if (property.isEntity()) {
PropertyPath nextPath = path == null ? PropertyPath.from(property.getName(), rootType)
: path.nested(property.getColumnName());
: path.nested(property.getName());
paths.add(nextPath);
paths.addAll(referencedEntities(rootType, nextPath));
}