mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-08 04:08:19 +00:00
HHH-14276 Avoid quoting column name for looking up references during composite identifier second pass
This commit is contained in:
parent
04ade27f07
commit
d1ee641e54
@ -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 ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user