I have problems with Spring Data MongoDB project. My problem is _class
property in all collection records. My user collection size is nearly 1.3 million records. All records have a _class
property. This is problem and bad design for project. Because MongoDB is a document-based system. Size is a problem each record in the collections. User collection:
{ "_class" : "com.myproject.xxx.yy.aaa.bb.User", … }
What if I want to move the User class to another package? Why does Spring Data add a _class
property to all records?