HHH-9947 - PhysicalNamingStrategy#toPhysicalTableName called rather than #toPhysicalColumnName for some columns

This commit is contained in:
Steve Ebersole 2015-07-18 17:22:26 -05:00
parent 837e9913c1
commit d7b1afeed7
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@ public class Ejb3JoinColumn extends Ejb3Column {
if ( StringHelper.isNotEmpty( columnName ) ) { if ( StringHelper.isNotEmpty( columnName ) ) {
if ( applyNamingStrategy ) { if ( applyNamingStrategy ) {
getMappingColumn().setName( getMappingColumn().setName(
getBuildingContext().getBuildingOptions().getPhysicalNamingStrategy().toPhysicalTableName( getBuildingContext().getBuildingOptions().getPhysicalNamingStrategy().toPhysicalColumnName(
getBuildingContext().getMetadataCollector().getDatabase().toIdentifier( columnName ), getBuildingContext().getMetadataCollector().getDatabase().toIdentifier( columnName ),
getBuildingContext().getMetadataCollector().getDatabase().getJdbcEnvironment() getBuildingContext().getMetadataCollector().getDatabase().getJdbcEnvironment()
).render() ).render()