hibernate exception row was updated or deleted exception when we save answer

前端 未结 2 1829
攒了一身酷
攒了一身酷 2021-01-27 06:12

Here I am Providing the hibernate project code which throws the exception

Exception:

org.hibernate.StaleObjectStateException:Row was updated or deleted         


        
2条回答
  •  时光说笑
    2021-01-27 06:44

    It probably means the row you are trying to update has already been updated by some other thread before your transaction is getting committed. Check whether the same record is being handled by multiple threads simultaneously.

提交回复
热议问题