Error suggest that your entity is being updated more than one place at a time. you can restrict this to happen by introducing @version on id.
You can follow below link. click here
To understand use of version annotation. click here