Files
hibernate-demo/locking/output/01-lost-update.txt
T

8 lines
315 B
Plaintext

start balance 100; transaction A deposits 10, transaction B deposits 20
both read 100 before either writes; A commits first, then B
final balance: 120 (a correct result would be 130)
update statements Hibernate sent:
update Account set balance=?,owner=? where id=?
update Account set balance=?,owner=? where id=?