Grails many-to-many associations and preventing cascade
问题 So, we have a many-to-many relationship between Customer and Role, set up as: Customer { static hasMany = [roles: Role] } Role { static hasMany = [customer: Customer] static belongsTo = Customer } The Role object has only a name and a set of permissions. We don't want to cascade saves from Customer -> Role, as Role should only get modified directly. I added: static mapping = { roles cascade: 'none' } but, whenever, I create a customer, the role table gets updated as well. Nothing changes,