While playing around with Spring roo I see this error while running the integration tests via
perform tests
roo org.springframework.orm.jpa.JpaOptimisticLockingFailureException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
The problem was here, that my database table which stored the specific entities had a version column but only NULL values inside. I have replaced the NULLs with an numeric value and then it worked.


The new version of the nice ![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=18935a78-a475-414b-9aeb-baea19f0ca6f)