Steps to replicate
- Create a java entity with at least one field as Long datatype
- The Long field is stored as int64
- Use Mongo Compass to export the document in JSON format
- Import the document in same or other collection
- The datatype of said field is not int32
Impact
Mongo int32 maps to Java Integer datatype which results in issue when parsing at Java side