public class ObjectIdSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
ObjectIds, which serializes an ObjectId as a String by
calling ObjectId.toString().| Constructor and Description |
|---|
ObjectIdSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Class<org.bson.types.ObjectId> |
handledType() |
void |
serialize(org.bson.types.ObjectId objectId,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
public void serialize(org.bson.types.ObjectId objectId,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
throws IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>IOExceptionpublic Class<org.bson.types.ObjectId> handledType()
handledType in class com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>Copyright © 2018 CrafterCMS. All rights reserved.