Annotation Type Convert


@Retention(CLASS) @Target(FIELD) public @interface Convert
A public no-arg converter for a basic field; converters also receive null values.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Selects the domain converter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Declares the SQL scalar type returned by the converter.
  • Element Details

    • converter

      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

      Class<?> storageType
      Declares the SQL scalar type returned by the converter.
      Returns:
      storage class; String by default
      Default:
      java.lang.String.class