This code is causing the following error:
optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by anothe