HHH-17161 Align `StandardTableGroup` table reference join name checks

This commit is contained in:
Marco Belladelli 2024-04-30 12:14:39 +02:00
parent a7b97f25fa
commit 3226679898
4 changed files with 4 additions and 4 deletions

View File

@ -334,7 +334,7 @@ public abstract class AbstractEntityCollectionPart implements EntityCollectionPa
primaryTableReference,
true,
sqlAliasBase,
(tableExpression) -> getEntityMappingType().containsTableReference( tableExpression ),
getEntityMappingType().getRootEntityDescriptor()::containsTableReference,
(tableExpression, tg) -> getEntityMappingType().createTableReferenceJoin(
tableExpression,
sqlAliasBase,

View File

@ -2318,7 +2318,7 @@ public class ToOneAttributeMapping
primaryTableReference,
true,
sqlAliasBase,
(tableExpression) -> getEntityMappingType().containsTableReference( tableExpression ),
getEntityMappingType().getRootEntityDescriptor()::containsTableReference,
(tableExpression, tg) -> getEntityMappingType().createTableReferenceJoin(
tableExpression,
sqlAliasBase,

View File

@ -3024,7 +3024,7 @@ public abstract class AbstractEntityPersister
rootTableReference,
true,
sqlAliasBase,
(tableExpression) -> getRootEntityDescriptor().containsTableReference( tableExpression ),
getRootEntityDescriptor()::containsTableReference,
(tableExpression, tg) -> {
final String[] subclassTableNames = getSubclassTableNames();
for ( int i = 0; i < subclassTableNames.length; i++ ) {

View File

@ -430,7 +430,7 @@ public class AnonymousTupleEntityValuedModelPart
primaryTableReference,
true,
sqlAliasBase,
entityMappingType::containsTableReference,
entityMappingType.getRootEntityDescriptor()::containsTableReference,
(tableExpression, tg) -> entityMappingType.createTableReferenceJoin(
tableExpression,
sqlAliasBase,