Improve table group resolution for subqueries using the same alias as parent
Description
With https://hibernate.atlassian.net/browse/HHH-16396 the resolution of TableGroups inside subqueries was changed to correctly handle cases where the same alias was used in both the parent query and the internal one.
This issue follows up on that work by improving the logic and handling some edge cases.
With https://hibernate.atlassian.net/browse/HHH-16396 the resolution of
TableGroup
s inside subqueries was changed to correctly handle cases where the same alias was used in both the parent query and the internal one.This issue follows up on that work by improving the logic and handling some edge cases.