-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-17743 Allow updates outside transaction #7867
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
Conversation
Please also add a test that reproduces the problem to the test class |
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
Hi @beikov , could you please review the test case ? |
Please rebase and squash to a single commit |
Hi @beikov, could you please check now and let me know the next step |
Hi @beikov , could you please review and let me know the next steps? |
Hi @beikov. This is a showstopper bug when working with the latest version of Spring Boot and JPA. |
Doing things outside a transation is never a show stopper ;) Also, why is this targetting 6.4 and not main? Does this not happen on main? |
Hi @sebersole , This bug impacts all 6.x branch. I pushed it to 6.4 hoping that 6.4.5 will come out soon and we can use this. I will also merge it to main branch. |
@sebersole Yes, my comment was intentionally provocative due to lack of response on what looks like a viable patch for three weeks. For reference, this shows up even when trying to execute queries from the EntityManager, even native queries. With or without |
Sorry this takes so long, but please understand that the ORM team has it's own priorities and is not that huge to respond to every request so fast. We're all trying our best, but if you need guaranteed fast response times, consider becoming a Red Hat customer and create support tickets, because such tasks have priority over everything else that we do. |
Understood. Thank you for your efforts. |
Thanks @beikov for merging. Could you please let know how to push it to main branch? I have to raise a new PR? |
2 PRs is fine. Or (future) send a PR against main and we will port it to maintained branches generally |
@beikov should not be something like or
|
I already merged it on main. @dreab8 the change of this PR is fine IMO, because getSession().checkTransactionNeededForUpdateOperation( "Executing an update/delete query" ); |
Please check https://discourse.hibernate.org/t/jakarta-persistence-transactionrequiredexception-on-query-modifying-and-transactional-methods/9042
https://hibernate.atlassian.net/browse/HHH-17743