Annotation Interface ValueConverter
@Retention(RUNTIME)
@Target({FIELD,ANNOTATION_TYPE})
@Documented
@Inherited
public @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
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends PropertyValueConverter>
Defines the class implementing thePropertyValueConverter
interface.
-
Element Details
-
value
Class<? extends PropertyValueConverter> valueDefines the class implementing thePropertyValueConverter
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
-