-
Notifications
You must be signed in to change notification settings - Fork 92
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
Clean up classes and interfaces for native queries #2045
Comments
I don't understand what you're saying here. |
Right. It should be similar to the QueryProducer#createNativeQuery(String sqlString, Class resultClass); |
Things with I'm not sure why we have |
So @DavideD if you wanted to add |
I was trying to write a test, and I realised some methods where not
accessible. Maybe there are some alternatives. I will add some details as
soon as I have a bit of time.
Gavin King ***@***.***> schrieb am Fr. 20. Dez. 2024 um 08:10:
… So @DavideD <https://github.com/DavideD> if you wanted to add
Stage.NativeQuery and Mutiny.NativeQuery to our API, then in principle
you *could*. But I would very much recommend against that because it
would just be doubling-down on legacy stuff that we want to get away from.
—
Reply to this email directly, view it on GitHub
<#2045 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEIQ5NFMK6DDRQDSBYNJXT2GO7IHAVCNFSM6AAAAABT4WBGD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJWGQYTOMJQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The usual way to do it since JPA 1.0 is to use a |
OK, then I will just keep this open as a reminder that we need to clean up this area. |
Note that I just opened jakartaee/persistence#691 to finally have a JPA-standard way to define result set mappings programmatically. Will have to wait for JPA4 though. |
I think there's is something wrong in the design of the Mutiny and Stage sessions when it comes to native queries.
For example, this Mutiny.Session#createNativeQuery returns
SelectionQuery
. But, it should return aReactiveNativeQueryImplementor
like in ORM.I don't think there is a way for users to access the methods in
ReactiveNativeQuery
at the moment.We need to add more testing.
(Noticed while adapting a test for HHH-18629)
The text was updated successfully, but these errors were encountered: