Annotation Type Convert
A public no-arg converter for a basic field; converters also receive null values.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends AttributeConverter> Selects the domain converter. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?> Declares the SQL scalar type returned by the converter.
-
Element Details
-
converter
Class<? extends AttributeConverter> converterSelects the domain converter. It must be public with a public no-argument constructor. Converters receive null values in both directions.- Returns:
- converter class
-
storageType
Class<?> storageTypeDeclares the SQL scalar type returned by the converter.- Returns:
- storage class; String by default
- Default:
java.lang.String.class
-