Skip to content

Commit

Permalink
HHH-17407 Fix navigable path assertion for correlated entity joins
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed Dec 1, 2023
1 parent 6ee5f11 commit eab28b3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ protected void copyTo(AbstractSqmPath<T> target, SqmCopyContext context) {

// meant for assertions only
private boolean navigablePathsMatch(AbstractSqmPath<T> target) {
final SqmPath<?> lhs = getLhs() != null ? getLhs() : findRoot();
final SqmPath<?> targetLhs = target.getLhs() != null ? target.getLhs() : target.findRoot();
return lhs == null || lhs.getNavigablePath() == targetLhs.getNavigablePath()
|| getRoot( lhs ).getNodeType() instanceof SqmPolymorphicRootDescriptor;
Expand Down

0 comments on commit eab28b3

Please sign in to comment.