Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Favor org.bson.Document over com.mongodb.BasicDBObject #221

Open
christophstrobl opened this issue Feb 18, 2022 · 0 comments
Open

Favor org.bson.Document over com.mongodb.BasicDBObject #221

christophstrobl opened this issue Feb 18, 2022 · 0 comments

Comments

@christophstrobl
Copy link
Member

Some of the newer MongoDB codecs (like the LocalDateTimeCodec) are not available for BasicDBObject which can lead to unexpected behaviour. toString() for example will fail with org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.time.LocalDateTime. in case the BasicDBObject contains a value of that type.

Related to: spring-projects/spring-data-mongodb#3968

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant