I have created three classes user, role, permission. I'm creating an application which is using mongodb and Jackson JSON (wiki.fasterxml.com/JacksonHome)
Example,
User will have Role Object Role will have List<Permission> and List<User> Objects Permission will have name and description field
In mongoose
, we have DBRef/ref attribute to specify parent, child relationship so that the child entities will be automatically populated on query using populate()
api
Questions:
- Do we have annotation in fasterxml similar to DBRef/Ref in mongoose?
- Is there a way to retrieve all the child objects of the parent in single query?
0 comments:
Post a Comment