Here I am Providing the hibernate project code which throws the exception
Exception:
org.hibernate.StaleObjectStateException:Row was updated or deleted
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.