Skip to content

Guard Repository.save(…) with provided Id with TransientDataAccessException if row does not exist #240

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 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Nov 22, 2019

We now emit a TransientDataAccessException if an object with a provided Id yields no affected rows. Such an arrangement is typically an indicator for a bug where calling code expects the object to be inserted with a provided Id.

See also #232.

…cessException if row does not exist.

We now emit a TransientDataAccessException if an object with a provided Id yields no affected rows. Such an arrangement is typically an indicator for a bug where calling code expects the object to be inserted with a provided Id.
@mp911de mp911de requested a review from schauder November 27, 2019 14:40
@schauder
Copy link
Contributor

This is merged into master

@schauder schauder closed this Nov 28, 2019
@mp911de mp911de deleted the issue/gh-232 branch November 10, 2020 11:04
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