Package javax.persistence
Annotation Type Convert
-
@Target({METHOD,FIELD,TYPE}) @Retention(RUNTIME) public @interface ConvertThe Convert annotation is used to specify the conversion of a Basic field or property. It is not necessary to use the Basic annotation or corresponding XML element to specify the basic type.- Since:
- Java Persistence 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringattributeNameThe attributeName must be specified unless the Convert annotation is on an attribute of basic type or on an element collection of basic type.java.lang.ClassconverterSpecifies the converter to be applied.booleandisableConversionUsed to disable an auto-apply or inherited converter.
-