开发者

How do map 1-to-1 relationship in grails to just 1 table under the covers?

开发者 https://www.devze.com 2023-01-01 10:06 出处:网络
Let\'s say I have a UserAccount domain class that has a UserPreferences domain class. I do this to sepa开发者_如何学编程rate the fields for organization purposes. Is there a way to tell grails/gorm th

Let's say I have a UserAccount domain class that has a UserPreferences domain class. I do this to sepa开发者_如何学编程rate 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!


There is an

static embedded = []

It is described here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号