HHH-17161 Align `StandardTableGroup` table reference join name checks
This commit is contained in:
parent
a7b97f25fa
commit
3226679898
|
@ -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,
|
||||
|
|
|
@ -2318,7 +2318,7 @@ public class ToOneAttributeMapping
|
|||
primaryTableReference,
|
||||
true,
|
||||
sqlAliasBase,
|
||||
(tableExpression) -> getEntityMappingType().containsTableReference( tableExpression ),
|
||||
getEntityMappingType().getRootEntityDescriptor()::containsTableReference,
|
||||
(tableExpression, tg) -> getEntityMappingType().createTableReferenceJoin(
|
||||
tableExpression,
|
||||
sqlAliasBase,
|
||||
|
|
|
@ -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++ ) {
|
||||
|
|
|
@ -430,7 +430,7 @@ public class AnonymousTupleEntityValuedModelPart
|
|||
primaryTableReference,
|
||||
true,
|
||||
sqlAliasBase,
|
||||
entityMappingType::containsTableReference,
|
||||
entityMappingType.getRootEntityDescriptor()::containsTableReference,
|
||||
(tableExpression, tg) -> entityMappingType.createTableReferenceJoin(
|
||||
tableExpression,
|
||||
sqlAliasBase,
|
||||
|
|
Loading…
Reference in New Issue