@Retention(CLASS) @Target({FIELD})
public @interface Convert
A public no-arg converter for a basic field; converters also receive null values.
Methods
Method details
converter
public abstract Class<? extends AttributeConverter> converter()Selects the domain converter. It must be public with a public no-argument constructor.
Converters receive null values in both directions.
Returns
converter class
storageType
public abstract Class<?> storageType() default java.lang.StringDeclares the SQL scalar type returned by the converter.
Returns
storage class; String by default