Given:
User,Fileare domain classessrc/groovy/Container.groovy:
class Container { User user File file Date dateCreated }grails-app/domain/WithContainer.groovy:
class WithContainer { Container c String text static embedded = ['c'] }
I was aiming at mapping WithContainer to a table with the columns:
user_id | file_id | date_created | text
Is that achievable with GORM?
This setup yields:
org.hibernate.MappingException: Could not determine type for: User, at table: with_container, for columns: [org.hibernate.mapping.Column(c_user)]
Thanks
Containernot among domain classes? - injecteer