Class MongoJackInstantSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class MongoJackInstantSerializer
    extends TransformingEmbeddedObjectSerializer<Instant,​Date>
    Serialises Instants as BSON dates when nanosecond precision is disabled.
    Author:
    Vladimir Petrakovich
    See Also:
    SerializationFeature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS