Annotation Interface Convert
Annotation to be applied to fields of entity properties to specify the AttributeConverter to use for
writing or reading its value in the graph database.
- Author:
- Vince Bickers, Adam George, Michael J. Simons
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Placeholder to allow the annotation to be applied without specifying an explicit converter implementation. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>
The type to which the value of the annotated member should be converted before saving as a property in the graph database.Class<?>
The type ofAttributeConverter
implementation to use on this property. -
Field Summary
-
Field Details
-
CONVERTER
- See Also:
-
GRAPH_TYPE
- See Also:
-
-
Element Details
-
value
Class<?> valueThe type ofAttributeConverter
implementation to use on this property.- Default:
- org.neo4j.ogm.annotation.typeconversion.Convert.Unset.class
-
graphPropertyType
Class<?> graphPropertyTypeThe type to which the value of the annotated member should be converted before saving as a property in the graph database.This is an optional attribute that should only be needed if
value()
hasn't been set to an explicit converter, as it only gets used to look up converters that can do the job at runtime.- Default:
- org.neo4j.ogm.annotation.typeconversion.Convert.Unset.class
-