Skip to content

Latest commit

 

History

History

nitrite-jackson-mapper

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Nitrite Jackson Mapper

A Jackson based NitriteMapper for Nitrite database. No need to write separate EntityConverter for your entity classes for conversion between entity and document. This mapper uses Jackson to convert your entity classes to and from Document and Object.

How To Install

To use this add required dependencies:

Maven

<dependencies>
    <dependency>
        <groupId>org.dizitart</groupId>
        <artifactId>nitrite-jackson-mapper</artifactId>
    </dependency>
</dependencies>

Gradle

implementation 'org.dizitart:nitrite-jackson-mapper'

Initialize Jackson Module

Nitrite db = Nitrite.builder()
        .loadModule(storeModule)
        .loadModule(new JacksonMapperModule())
        .openOrCreate("user", "password");