Skip to content

Commit

Permalink
HHH-14276 Avoid quoting column name for looking up references during …
Browse files Browse the repository at this point in the history
…composite identifier second pass
  • Loading branch information
beikov authored and Sanne committed Nov 16, 2020
1 parent 44ca255 commit a8fdb4d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ private Property createSimpleProperty(
final Ejb3JoinColumn joinColumn;
String logicalColumnName = null;
if ( isExplicitReference ) {
final String columnName = column.getName();
logicalColumnName = buildingContext.getMetadataCollector().getLogicalColumnName(
referencedPersistentClass.getTable(),
columnName
);
logicalColumnName = column.getName();
//JPA 2 requires referencedColumnNames to be case insensitive
joinColumn = columnByReferencedName.get( logicalColumnName.toLowerCase(Locale.ROOT ) );
}
Expand Down

0 comments on commit a8fdb4d

Please sign in to comment.