Package javax.jdo.annotations
Annotation Type Convert
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Convert
Specifies that a given type should be converted before being stored to, and after being retrieved from the datastore using the givenAttributeConverter
. If this annotation is placed on a type, then the conversion applies to all fields or properties whose types match the entity type of the givenAttributeConverter
. AnyConvert
annotations placed on members overrides any type-level conversion specifications. If this annotation is placed on a field or property, the annotated attribute's type must be assignment-compatible with theAttributeConverter
's entity type argument.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends AttributeConverter>
value
TheAttributeConverter
to use for conversion.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
enabled
Whether this conversion is enabled.
-
-
-
Element Detail
-
value
Class<? extends AttributeConverter> value
TheAttributeConverter
to use for conversion.- Returns:
- Converter class to use
-
-