Skip to content

Conversation

@scottmarlow
Copy link
Member

@scottmarlow scottmarlow commented Dec 2, 2025

Change to check for active transaction before checking if the entity is managed.

Tracking issue is https://hibernate.atlassian.net/browse/HHH-19863

Zulip discussion is https://hibernate.zulipchat.com/#narrow/channel/132094-hibernate-orm-dev/topic/em.23lock.20requirement.20to.20throw.20TransactionRequiredException/with/544678964 that talks about changing the order as this pull request does.


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.


…should throw jakarta.persistence.TransactionRequiredException

Signed-off-by: Scott Marlow <[email protected]>
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 2, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

Copy link
Member

@gavinking gavinking left a comment

Choose a reason for hiding this comment

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

@scottmarlow As I mentioned on the issue persistence project, this should already have been taken care of by #11318.

Also: you're doing this to work around a bug in the platform TCK. You should fix the bug in the platform TCK instead.

So -1.

@scottmarlow scottmarlow closed this Dec 2, 2025
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.

2 participants