@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface Convert
AttributeConverter
.
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 given AttributeConverter
.
Any Convert
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 the AttributeConverter
's entity type argument.Modifier and Type | Required Element and Description |
---|---|
Class<? extends AttributeConverter> |
value
The
AttributeConverter to use for conversion. |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
enabled
Whether this conversion is enabled.
|
public abstract Class<? extends AttributeConverter> value
AttributeConverter
to use for conversion.Copyright © 2005–1970 Apache Software Foundation. All rights reserved.