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

HHH-13433 EntityManager.find() should only check for roll-back-only condition if there is an active JTA transaction, otherwise ORM should throw convert( e, lockOptions ) #2902

Closed
wants to merge 1 commit into from

Conversation

scottmarlow
Copy link
Member

https://hibernate.atlassian.net/browse/HHH-13433
This change complements the HHH-12472 change, in the following way. If there isn't an active JTA transaction, we will not throw "IllegalStateException: JPA compliance dictates throwing IllegalStateException when #getRollbackOnly is called on non-active transaction", instead we will throw the exception returned from call to convert(e, lockOptions).

…ondition if there is an active JTA transaction, otherwise ORM should throw throw convert( e, lockOptions )
gbadner
gbadner previously approved these changes Nov 8, 2019
Copy link
Contributor

@gbadner gbadner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I'm holding off on approving this for 5.3.

@gbadner gbadner self-requested a review November 8, 2019 04:30
@gbadner gbadner dismissed their stale review November 8, 2019 04:32

I'm going hold off on approving for 5.3 until there is a test case.

@gbadner
Copy link
Contributor

gbadner commented Nov 14, 2019

Superseded by #3100.

@gbadner gbadner closed this Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants