jakartaee / nosql

The specification in Jakarta EE to help Jakarta EE developers create enterprise-grade applications using Java® and NoSQL technologies.
https://projects.eclipse.org/projects/ee4j.nosql
Eclipse Public License 2.0
92 stars 28 forks source link

Handle DbRef in Mongo #110

Closed hantsy closed 2 years ago

hantsy commented 2 years ago

Mongo drivers itself can handle the dbref case.

{
  'title': 'test title', 
  'comments': [ uuid-1, 2, 3] //ref to comment document
}

we can add and remove comment from Post.comments node directly.

otaviojava commented 2 years ago

Hey @hantsy I hope that you're okay.

Once it is a particular behavior, I'll move it to an extension: https://github.com/eclipse/jnosql-mapping-extension/tree/main/jnosql-mongodb-extension

The goal of the NoSQL API is to use the commons behavior, anything else, move to extension.