Grails GORM on multiple Forms
Posted
by
Fabien Barbier
on Stack Overflow
See other posts from Stack Overflow
or by Fabien Barbier
Published on 2011-02-16T23:22:34Z
Indexed on
2011/02/16
23:25 UTC
Read the original article
Hit count: 307
Usually I'm using One-to-many relationship by this way :
class Subject {
static hasMany = [ crfs : Crf ]
String name
...
}
class Crf {
String title
String info
...
}
I can extend this relationship to others domains, Ex :
static hasMany = [ crfs : Crf, crfb : CrfBlood ...]
But in my case I have to link the Subject domain to 30 others domains, maybe more...(ex : CrfBlood, CrfMedical, crfFamily, etc...).
What domain model implementation should I use in my case ?
I would like to keep the dynamic finders usability in my project.
© Stack Overflow or respective owner