Tuesday, November 23, 2010

grails many to many

currently grails many to many relation ships are giving me a lot of grief with exceptions like



org.hibernate.StaleObjectStateException:
Row was updated or deleted by another transaction (or unsaved-value mapping was
incorrect): [ClassName#id]



or constraint excpetions.

Which all turned out to be related that the optimistic locking fails from time to time and needs to be disabled.
With version = false in the domain mapping.

References:

disable optimistic locking
delete many to many relations

No comments:

Post a Comment