Skip to content

HHH-19524 @OnetoOne relationship unnecessary joins in nativeQuery #10484

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 2 commits into from
Jul 24, 2025

Conversation

dreab8
Copy link
Member

@dreab8 dreab8 commented Jul 8, 2025

https://hibernate.atlassian.net/browse/HHH-19524


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


public void testQuery(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
List<Long> ids = session.createQuery("select o.orderId from Order o", Long.class ).list();

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'List ids' is never read.
@beikov beikov merged commit a67f5f9 into hibernate:main Jul 24, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants