Class SerializationOptionsBuilder

java.lang.Object
org.mongojack.SerializationOptionsBuilder

public class SerializationOptionsBuilder extends Object
  • Method Details

    • 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.

      Returns:
      whether or not to just use regular codec serialization
    • build

      public SerializationOptions build()