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 f1f28182e7
commit 67ed4de530
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35

View File

@ -16,6 +16,8 @@
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 StandardVirtualTableGroup(
underlyingTableGroup.canUseInnerJoins(),
navigablePath,
modelPart,
underlyingTableGroup.getSourceAlias(),
castNonNull( navigablePath.getRealParent() ).getAlias(),
null,
null
);