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

refactoring of handling of named and native Query construction #9766

Merged
merged 5 commits into from
Feb 18, 2025

Conversation

gavinking
Copy link
Member

[Please describe here what your change is about]


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.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Feb 18, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [21c3333, 126ae01, 2d9e73d, bcdd51b, 66fd092]

› This message was automatically generated.

@gavinking gavinking changed the title major refactoring of handling of named and native Query construction refactoring of handling of named and native Query construction Feb 18, 2025
@@ -63,6 +63,6 @@
<T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> javaType);

interface ParameterMemento {
QueryParameterImplementor resolve(SharedSessionContractImplementor session);
QueryParameterImplementor<?> resolve(SharedSessionContractImplementor session);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'session' is never used.
@@ -107,7 +107,7 @@
session.createNativeQuery( sql ).addEntity( "t", AllTables.class ).list();
List<AllTables> allTables = session.createNativeQuery( sql, AllTables.class, "t" ).list();
session.createNativeQuery( sql2, "all" ).list();
List<String> allTableNames = session.createNativeQuery( sql2, "all", String.class ).list();
List<String> allTableNames = session.createNativeQuery( sql2, String.class ).list();

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'List allTableNames' is never read.
@gavinking gavinking merged commit 160b3ad into hibernate:main Feb 18, 2025
24 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.

1 participant