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

MongoDB throws an exception when updating an entity that is an inner class

Description

MongoDB throws the exception because the table field contains a $ signed in the name.

1 Caused by: com.mongodb.MongoException: cannot update reserved $ collection

Example:

1 2 3 4 5 6 7 8 9 10 11 12 @Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public class CommunityMember { @Id public String name; ... @Entity public static class Employee extends CommunityMember { ... } }

Environment

None

Status

Assignee

Sanne Grinovero

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

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

4.1.0.Beta1

Priority

Major