this is a great idea, but should we not start by respecting @Embeddable & @Embedded ? I think they make @EmbeddedInDocument redundant.
The coolest aspect is that in a RDBMs mapped entity and @Embedded relation has a restricted cardinality as the number of columns it's mapped to is statically defined, while with a document based store you could store collections of embedded types, nesting them in trees.
this is a great idea, but should we not start by respecting @Embeddable & @Embedded ? I think they make @EmbeddedInDocument redundant.
The coolest aspect is that in a RDBMs mapped entity and @Embedded relation has a restricted cardinality as the number of columns it's mapped to is statically defined, while with a document based store you could store collections of embedded types, nesting them in trees.