Package org.mongojack.internal
Class DateSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<InputType>
-
- org.mongojack.TransformingEmbeddedObjectSerializer<T,T>
-
- org.mongojack.internal.EmbeddedObjectSerializer<Date>
-
- org.mongojack.internal.DateSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class DateSerializer extends EmbeddedObjectSerializer<Date>
Serialises dates as BSON dates. Basically this just requires writing it as an object rather than a long.- Since:
- 1.2
- Author:
- James Roper, Kevin D. Keck
-
-
Field Summary
-
Fields inherited from class org.mongojack.TransformingEmbeddedObjectSerializer
writeNullAsNull
-
-
Constructor Summary
Constructors Constructor Description DateSerializer()
-
Method Summary
-
Methods inherited from class org.mongojack.internal.EmbeddedObjectSerializer
serialize, transform, writeEmbeddedObject
-
-