I am using spring roo with mongodb. I would like to create an entity that contains an embedded set of a user-defined type such that it is in the same mongodb document as the other fields in the entity. I naively thought that I could just put @Embedded on my set but this does not work. How can I achieve this?
Share
You don’t need to use any annotation, simply define the Set user-defined types as a member of the class being stored: