Skip to content
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

Get rid of select queries for each ManyToMany not found ignored element in hql #3394

Merged
merged 12 commits into from
Aug 4, 2023

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Aug 3, 2023

Use table group join with inner joined entity table for many-to-many not-found="ignore" mapping:

FROM Device device0_
LEFT OUTER JOIN (
	DriveOfDevice drives1_ 
	INNER JOIN Drive drive2_ ON drives1_.DriveId = drive2_.id
	) ON device0_.id = drives1_.DeviceId

bahusoid and others added 11 commits August 3, 2023 15:06

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@bahusoid bahusoid merged commit a7deeb0 into nhibernate:master Aug 4, 2023
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.

None yet

2 participants