Hi experts,
I am using Hibernate JPA provider. I am using an interceptor to implement optimistic locking. In OnflishDirty() method after performing some validations, I am throwing optimisticLockException. Then I catch the exception and do following > Object entity = em.find(id) > em.refresh(entity)
While executing the last line it throws org.hibernate.HibernateException Exception message : this instance does not yet exist as a row in the database
Please let me know how to solve this issue
Thanks and regards, Pushker Chaubey
|