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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -