kmongo / org.litote.kmongo.util / ObjectMappingConfiguration

ObjectMappingConfiguration

object ObjectMappingConfiguration (source)

Default object mapping configuration options. Set values before KMongo initialization.

Properties

serializeNull

Are null value serialized? Default to false. Does not work for now for Jackson mapping (null are always serialized)

var serializeNull: Boolean

Functions

addCustomCodec

Adds a custom codec.

fun <T> addCustomCodec(codec: Codec<T>): Unit