Annotation Interface Convert
Specifies the conversion of a Basic field or property.
The Convert
annotation should not be used to specify conversion of the following: Id attributes, version
attributes, relationship attributes, and attributes explicitly denoted as Enumerated or Temporal. Applications that
specify such conversions will not be portable.
The Convert
annotation may be applied to a basic attribute or to an element collection of basic type (in
which case the converter is applied to the elements of the collection).
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>
Specifies the converter to be applied.boolean
Used to disable an auto-apply converter.
-
Element Details
-
converter
Class<?> converterSpecifies the converter to be applied.A value for this element must be specified if multiple converters would otherwise apply.
- Default:
- void.class
-
disableConversion
boolean disableConversionUsed to disable an auto-apply converter. If disableConversion is true, the converter element should not be specified.- Default:
- false
-