Skip to content

Port HQL Entity Join #2025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2019
Merged

Port HQL Entity Join #2025

merged 1 commit into from
Mar 1, 2019

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Feb 27, 2019

It's a port for the following hibernate commit adding support for explicit joins on unrelated classes

Fixes #981

@@ -1195,14 +1256,7 @@ public void Visit(IASTNode node)
{
DotNode dotNode = ( DotNode ) node;
FromElement fromElement = dotNode.FromElement;
if ( _referencedFromElement != null )
{
if ( fromElement != _referencedFromElement )
Copy link
Member Author

@bahusoid bahusoid Feb 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this check was completely removed to also fix the following hibernate issue. I've added CrossJoinAndWithClause test to simulate it and this exception is indeed need to be removed. But this test still fails due to some other issue (theta style join is simply skipped in generated SQL added in a wrong order).

Copy link
Member

@hazzik hazzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small whitespace glitches

@hazzik hazzik added the t: Fix label Feb 28, 2019
hazzik
hazzik previously approved these changes Feb 28, 2019
@hazzik hazzik added this to the 5.3 milestone Feb 28, 2019
@hazzik hazzik merged commit 11bc49d into nhibernate:master Mar 1, 2019
@hazzik hazzik added the r: Fixed label Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants