groovy - Grails problem persisting data in join tables for many-to-many relationships -


I am having trouble maintaining domain objects where I have many-to-many relationships with a table table Class A {string name is constant = hemanyy = [bs: b]} square b {string nickname is constant = a constant hemayy = [as: A]} AA = new A (name: 'Test') BB = new B (alias: 'user') a.addToBs (b) a.save (flush: true)

Then what I expect to see

  rhythm However, data remains in Table A only. However, the data remains in Table A only. 

Does anyone know what I am doing?

Thank you

I have this link which has many mapping of many relationships Shows a clear way of

King Jas By the way I want this time


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -