Dozd Apr 2026

Adheres strictly to the Java Bean specification, requiring standard getters and setters for entity properties.

Provides a MongoMapper.getProviders() method to easily create a CodecRegistry for use with standard or asynchronous MongoDB Java drivers. Adheres strictly to the Java Bean specification, requiring

Simplifies storing and retrieving Java POJOs in MongoDB, reducing boilerplate code compared to traditional manual mapping. Based on your request, "dozd" primarily refers to

Based on your request, "dozd" primarily refers to a specialized open-source Java library, specifically . It is designed as an easy Plain Old Java Object (POJO) codec for MongoDB, streamlining the process of mapping Java objects directly to MongoDB documents without complex configuration. Key Features of dozd/mongo-mapper Copied to clipboard Then, registering the provider with

import eu.dozd.mongo.annotation.Entity; import eu.dozd.mongo.annotation.Id; @Entity public class Person { @Id String id; String name; int age; // Getters and setters required } Use code with caution. Copied to clipboard Then, registering the provider with the MongoDB client:

CodecRegistry codecRegistry = CodecRegistries.fromProviders(MongoMapper.getProviders()); MongoClientSettings settings = MongoClientSettings.builder() .codecRegistry(codecRegistry) .build(); Use code with caution. Copied to clipboard

The library focuses on providing a clean, straightforward way to handle POJO codecs. Example usage involves annotating a class: