Embeddable object with an ElementCollection that contains Embeddable objects

Description

I have the following objects

I was expecting the Mongo object would look like this:

Instead it looks like this (which is not desired):

I can achieve the desired situation as follows:

However, this is not the way I want to store the objects.

Environment

Hibernate HQL: 1.2.0.Final
Hibernate OGM: 5.0.0.Final
Hibernate OGM MongoDB: 5.0.0.Final
MongoDB Java Driver: 3.4.1

Status

Assignee

Unassigned

Reporter

MartijnP

Labels

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Minor
Configure