Annotation Interface ValueConverter


Annotation to put on a property of an entity to define a value converter which can convert the property to a type that Elasticsearch understands and back.
Since:
4.3
Author:
Peter-Josef Meisch
  • Element Details

    • value

      Class<? extends PropertyValueConverter> value
      Defines the class implementing the PropertyValueConverter interface. If this is a normal class, it must provide a default constructor with no arguments. If this is an enum and thus implementing a singleton by enum it must only have one enum value.
      Returns:
      the class to use for conversion