-
Notifications
You must be signed in to change notification settings - Fork 60
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
easy access to the JDBC connection associated with the EM #432
Comments
Please see draft proposal in #433 |
I would like unite the naming to use |
Well, actually I quite deliberately chose "run" and "call" to make you think of the difference between I'm not very keen on your suggested convention because:
Do you have a different suggestion? |
Note that "executeWith" and "computeWith" work and are very clear, but they're also quite verbose. (I could live with them if that's what others prefer.) |
I just see some examples like these, eg. Micronaut Data use |
@hantsy The reason that works out nicely in reactive is that every operation returns a |
see #432 Co-authored-by: Lukas Jungmann <[email protected]>
JPA currently provides no easy way to just run some JDBC code within the transaction/connection associated with the
EntityManager
. This isn't such a big deal when using JPA inside a container, but it's a pretty big limitation when using it in standalone mode.Hibernate has an API like this, as part of our
Session
:I propose we add something very similar, or even almost identical to
EntityManager
.The text was updated successfully, but these errors were encountered: