-
Notifications
You must be signed in to change notification settings - Fork 16
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
Concurrent changes to attribute leave data in inconsistent state #202
Labels
Comments
Note that experiments with Eclipselink and Hibernate on the same scenario show that "T2 value" should be the only result - i.e., the last committed change overwrites any previous ones. |
ledsoft
added a commit
that referenced
this issue
Sep 14, 2023
ledsoft
added a commit
that referenced
this issue
Sep 14, 2023
…ts update to prevent transaction concurrency issues. Originally, all property values were selected and then these statements were removed on commit. However, if these changed in the meantime (e.g., when another transaction committed), it lead to stale data being in the repository.
ledsoft
added a commit
that referenced
this issue
Sep 19, 2023
…s update to prevent transaction concurrency issues. Originally, all property values were selected and then these statements were removed on commit. However, if these changed in the meantime (e.g., when another transaction committed), it lead to stale data being in the repository.
ledsoft
added a commit
that referenced
this issue
Sep 22, 2023
…statements added with transaction to LocalModel.
ledsoft
added a commit
that referenced
this issue
Sep 22, 2023
…its update to prevent transaction concurrency issues.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When two concurrent transaction modify the same attribute of the same entity, both new values are saved in the repository.
Consider the following example, assuming
Person.name
is a singular attribute,T1
andT2
are transactions in separate persistence contexts (entity managers):After this sequence, the repository contains both "T1 value" and "T2 value" for
p
, which causesIntegrityConstraintViolationException
s on loadingp
becausePerson.name
is a singular attribute.The text was updated successfully, but these errors were encountered: