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

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.


disable optimistic locking
delete many to many relations