Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
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

Description

@christophstrobl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions