grails/inconsequential — Issue #5: Clarify difference between MongoDB GORM's embedded and traditional GORM embedded 
Author: hardwickj
Created: 2011-11-05 04:04:07+00:00
State: open

In traditional (Hibernate based) GORM, if one used an embedded mapping it was also necessary for them to define the embedded class in the same file as the embedding class. With MongoDB, this isn't necessary (indeed, it seems it's required that you don't).

Currently the documentation at http://grails.github.com/inconsequential/mongo/manual/guide/3.%20Mapping%20Domain%20Classes%20to%20Mongo%20Collections.html doesn't clarify this, which can be a bit of a stumbling block for those of us converting from a RDBS-based domain model to Mongo.