Skip to content

[6.6] HHH-19522 upsert should not fail silently instead of throwing StaleObjectStateException #10311

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

Closed
wants to merge 4 commits into from

Conversation

mbellade
Copy link
Member

https://hibernate.atlassian.net/browse/HHH-19522

Backport of #10289


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.


upsert() should throw StaleObjectStateException if the version
verification fails
- also fix the problem for upsert emulation with UPDATE/INSERT
@mbellade mbellade added the 6.6 label Jun 12, 2025
@hibernate-github-bot
Copy link

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [0005b80]

› This message was automatically generated.

@mbellade
Copy link
Member Author

Closing, this would require #9932 since it relies on ConstraintViolationException#getKind.

@mbellade mbellade closed this Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants