« Return to Thread: how to define one to many relationship in Grails

Re: how to define one to many relationship in Grails

by rtayek :: Rate this Message:

Reply to Author | View in Thread

At 12:09 PM 4/21/2008, you wrote:
>...
>                         static hasMany=[businessProcess:BusinessProcess]
>...            static hasMany=[systemFunctionalArea:SystemFunctionalArea]
>...
>Grails is creating 3 tables ...

you are making a many to many.

get rid of one of the hasMany's. that's what is causing the many to many.

thanks

---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: how to define one to many relationship in Grails

LightInTheBox - Buy quality products at wholesale price