Improve mapping of nested embeddables within element collections in document stores

Description

Came across this presumbly hard to fix issue around nested embeddables stored within element collections in MongoDB.

Consider MultiAddressAccount form EmbeddableTest. There we map the following (the object structure is account -> list of addresses -> address type):

In a document store you'd rather do it like this, though:

And that's how we actually would do it, if the embeddable was not part of a list but embedded directly. Unfortunately we don't receive the name of the embeddable in insertOrUpdateAssociation(), though. So we cannot create such structure atm.

Environment

None

Assignee

Unassigned

Reporter

Gunnar Morling

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure