Batch update returned unexpected row count from update [2]; actual row count

Batch update returned unexpected row count from update [2]; actual row count

在网上找了很久找到解决办法都不能解决得了,后来发现hibernate对对象持久化后,对象更改了,在事务提交时,会把更改的对象持久化到数据库,而在持久化到数据库之前,这条数据已经被删除,故导致以上问题。

猜你喜欢

转载自fireye83.iteye.com/blog/1626787