views:

33

answers:

1

Let's say I have a UserAccount domain class that has a UserPreferences domain class. I do this to separate the fields for organization purposes. Is there a way to tell grails/gorm that I really want it to map these domain classes to just the user_account table under the covers?

Thanks!

+2  A: 

There is an

static embedded = []

It is described here.

Daniel Engmann
Thanks! This is exactly what I needed and couldn't find it in the extra gorm info. I guess they presented this idea early on in the docs rather than in the customizing part, which is where I thought it should be.
egervari