HHH-16555 Correct source alias for embedded virtual table group joins on implicitly treated paths
This commit is contained in:
parent
23a03fcb58
commit
2eed461b9e
|
@ -16,6 +16,8 @@ import org.hibernate.metamodel.mapping.OwnedValuedModelPart;
|
||||||
import org.hibernate.metamodel.mapping.ValuedModelPart;
|
import org.hibernate.metamodel.mapping.ValuedModelPart;
|
||||||
import org.hibernate.spi.NavigablePath;
|
import org.hibernate.spi.NavigablePath;
|
||||||
|
|
||||||
|
import static org.hibernate.internal.util.NullnessUtil.castNonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Christian Beikov
|
* @author Christian Beikov
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +34,7 @@ public class StandardVirtualTableGroup extends AbstractTableGroup implements Vir
|
||||||
underlyingTableGroup.canUseInnerJoins(),
|
underlyingTableGroup.canUseInnerJoins(),
|
||||||
navigablePath,
|
navigablePath,
|
||||||
modelPart,
|
modelPart,
|
||||||
underlyingTableGroup.getSourceAlias(),
|
castNonNull( navigablePath.getRealParent() ).getAlias(),
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue