public class Address {
static mapWith = "mongo"
Region region;
Zone zone;
static mapping = {
id generator: 'identity'
region reference:true
zone reference:true
}
}
I'm interested in knowing what reference:true
does.
In my experience, leaving it off gives exactly the same result except there's no DBRef
in the actual mongo document.