Is there a way I can easily flatten an object to one table in Gorm? I have several conceptual entities which always need to be joined to their parent class. That is, I have this:
class A{
B other;
String name;
String value;
}
class B{
String val1;
String val2;
}
Is there a way to annotate this so that val1 and val2 appear exclusively in table A?
Add
otherto the embedded list in classA:See section 5.2.2, Composition in GORM: http://grails.org/doc/1.0.x/guide/5.%20Object%20Relational%20Mapping%20%28GORM%29.html