spring-projects / spring-data-mongodb

Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-mongodb/
Apache License 2.0
1.59k stars 1.07k forks source link

Consider null value settings for types with custom conversion. #4728

Open christophstrobl opened 2 weeks ago

christophstrobl commented 2 weeks ago

This PR fixes an issue where settings regarding storage of null values had been ignored if a custom converter took care of the conversion.

Let's do an initial round of review and check how dbrefs should be treated when there's this kind of conversion. Also, if we decide to go for it, we need to update the documentation.