Hi,
I am new to Spring Roo. I am trying to create a nested document in mongo (Service object contains Request and Response objects). Here is the roo script. I used "field reference" But I see different documents for Service, Request and Reponse. How do I fix it?

entity mongo --class ~.domain.app --testAutomatically
entity mongo --class ~.domain.Service --testAutomatically
focus --class ~.domain.App
field string --fieldName name --notNull
field string --fieldName version --notNull
focus --class ~.domain.service
field string --fieldName name --notNull
field string --fieldName version --notNull
entity mongo --class ~.domain.Request --testAutomatically
entity mongo --class ~.domain.Response --testAutomatically
focus --class ~.domain.Request
field string --fieldName name --notNull
focus --class ~.domain.Response
field string --fieldName name --notNull
field reference --type ~.domain.Service --fieldName service --notNull
focus --class ~.domain.Request
field reference --type ~.domain.Service --fieldName service --notNull
repository mongo --interface ~.repository.AppRepository --entity ~.domain.App
repository mongo --interface ~.repository.ServiceRepository --entity ~.domain.Service
repository mongo --interface ~.repository.RequestRepository --entity ~.domain.Request
repository mongo --interface ~.repository.ResponseRepository --entity ~.domain.Response
service --interface ~.service.AppService --entity ~.domain.App
service --interface ~.service.ServiceService --entity ~.domain.Service
service --interface ~.service.RequestService --entity ~.domain.Request
service --interface ~.service.ResponseService --entity ~.domain.Response

Thanks & Regards
Kalyan