Package org.mongojack

Interface SerializationOptions


  • public interface SerializationOptions
    Used to customize various aspects of serialization inside JacksonMongoCollection. Pass this to the builder for the collection.
    • Method Detail

      • isSimpleFilterSerialization

        boolean isSimpleFilterSerialization()

        Controls whether or not Bson filters passed to JacksonMongoCollection and the various iterable implementations are serialized with specific knowledge of the document class and its specific bean fields or not.

        Enabling simple serialization might be desired if conversion to a BsonDocument and then back produces undesirable side-effects. For most purposes a simple toBsonDocument with the right codec is sufficient.

        Returns:
        whether or not to just use regular codec serialization