lndbrg / jackson-datatype-datastore

Set of support modules for Google Datastore datatypes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is a Jackson modules needed to support Google Datastore value entities.

License

All modules are licensed under Apache License 2.0.

Status

Build Status Coverage Status

Usage

Maven dependencies

<dependency>
    <groupId>com.bobkevic.jackson.datatype</groupId>
    <artifactId>jackson-module-datastore</artifactId>
</dependency>

Note that you also need to depend on the jsr310 module

<dependency>
    <groupId>com.fasterxml.jackson.datatype</groupId>
    <artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

Registering modules

Note that the JavaTimeModule is also added

final ObjectMapper mapper = new ObjectMapper()
   .registerModule(new DatastoreModule())
   .registerModule(new JavaTimeModule());

or, alternatively, you can also auto-discover these modules with:

final ObjectMapper mapper = new ObjectMapper();
mapper.findAndRegisterModules();

Either way, after registration all functionality is available for all normal Jackson operations.

About

Set of support modules for Google Datastore datatypes

License:Apache License 2.0


Languages

Language:Java 99.3%Language:Shell 0.7%