HHH-15622 Query bug in @NamedEntityGraph when doing Eager loading of @OneToOne mappings in Single Table inheritance

This commit is contained in:
Andrea Boriero 2022-10-26 15:05:08 +02:00 committed by Sanne Grinovero
parent a4f2c936dc
commit dd1bd43846
1 changed files with 1 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ public class MappingModelCreationHelper {
// case of ToOne with @PrimaryKeyJoinColumn // case of ToOne with @PrimaryKeyJoinColumn
keySelectableMapping = SelectableMappingImpl.from( keySelectableMapping = SelectableMappingImpl.from(
tableExpression, tableExpression,
table.getColumn( 0 ), table.getPrimaryKey().getColumn( 0 ),
simpleFkTarget.getJdbcMapping(), simpleFkTarget.getJdbcMapping(),
creationProcess.getCreationContext().getTypeConfiguration(), creationProcess.getCreationContext().getTypeConfiguration(),
dialect, dialect,