We're updating the issue view to help you get more done. 

Error when entity has ObjectID and Embeddable in MongoDB

Description

From the forum:

If I use the new ID-feature with MongoDB (ObjectId) like this:

1 2 3 4 5 6 @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private ObjectId id; @Embedded private SomeEmbeddable details;

Then storing the entity causes the following exception:

1 java.lang.IllegalArgumentException: Document field names can't have a . in them. (Bad Key: 'details.endDate')

Environment

None

Status

Assignee

Davide D'Alto

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

4.1.0.Beta7

Priority

Major