mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-08 20:24:46 +00:00
Make sure the discriminator path uses the correct table group
This commit is contained in:
parent
20564a5547
commit
b227475489
@ -79,7 +79,7 @@ public SqmPathInterpretation<?> interpret(
|
||||
boolean jpaQueryComplianceEnabled) {
|
||||
assert entityDescriptor.hasSubclasses();
|
||||
|
||||
final TableGroup tableGroup = sqlAstCreationState.getFromClauseAccess().getTableGroup( getLhs().getNavigablePath() );
|
||||
final TableGroup tableGroup = sqlAstCreationState.getFromClauseAccess().getTableGroup( getNavigablePath().getParent() );
|
||||
final ModelPartContainer modelPart = tableGroup.getModelPart();
|
||||
final EntityMappingType entityMapping;
|
||||
if ( modelPart instanceof EntityValuedModelPart ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user