Grails “a different object with the same identifier value was already associated with the session” error [duplicate]
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Hibernate: different object with the same identifier value was already associated with the session I have the following code in my controller in Grails that is failing with "a different object with the same identifier value was already associated with the session" error message. I have already visited few pages where it says that I must call "merge" before calling save which ends up with this error Provided id