Package org.mongojack

Class SerializationOptionsBuilder

    • Method Detail

      • withSimpleFilterSerialization

        public SerializationOptionsBuilder withSimpleFilterSerialization​(boolean simpleFilterSerialization)

        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.

        whether or not to just use regular codec serialization