Files

10 lines
397 B
Plaintext

same race, entity has @Version
A: committed. B: failed
B exception: jakarta.persistence.OptimisticLockException
caused by: org.hibernate.StaleObjectStateException
final balance: 110, version: 1
update statements Hibernate sent:
update VersionedAccount set balance=?,owner=?,version=? where id=? and version=?
update VersionedAccount set balance=?,owner=?,version=? where id=? and version=?