我在用hibenate实现数据库操作时有一个表用的是联合主键,表里有一个version字段,但是不是hibernate本身锁的version,并没有加锁,但是当我在对这个表的数据实现更新操作时报下面的错误: 
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 不知道什么原因,请知道的帮忙看一下,谢谢!