diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyJpaCompliantImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyJpaCompliantImpl.java index afa507404c..a6b0996a5c 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyJpaCompliantImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyJpaCompliantImpl.java @@ -145,12 +145,12 @@ public class ImplicitNamingStrategyJpaCompliantImpl implements ImplicitNamingStr || source.getAttributePath() == null ) { name = transformEntityName( source.getEntityNaming() ) + '_' - + source.getReferencedColumnName(); + + source.getReferencedColumnName().getText(); } else { name = transformAttributePath( source.getAttributePath() ) + '_' - + source.getReferencedColumnName(); + + source.getReferencedColumnName().getText(); } return toIdentifier( name, source.getBuildingContext() );