HHH-16555 Correct source alias for embedded virtual table group joins on implicitly treated paths

This commit is contained in:
Marco Belladelli 2023-05-11 10:26:07 +02:00
parent 23a03fcb58
commit 2eed461b9e
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ import org.hibernate.metamodel.mapping.OwnedValuedModelPart;
import org.hibernate.metamodel.mapping.ValuedModelPart;
import org.hibernate.spi.NavigablePath;
import static org.hibernate.internal.util.NullnessUtil.castNonNull;
/**
* @author Christian Beikov
*/
@ -32,7 +34,7 @@ public class StandardVirtualTableGroup extends AbstractTableGroup implements Vir
underlyingTableGroup.canUseInnerJoins(),
navigablePath,
modelPart,
underlyingTableGroup.getSourceAlias(),
castNonNull( navigablePath.getRealParent() ).getAlias(),
null,
null
);