...
Interceptor | Description |
---|---|
|
...
@Conversion
The Conversion annotation must be applied at Type level.
Parameter | Required | Default | Notes |
---|---|---|---|
conversion | no |
| Used for Type Conversions being applied at Type level. |
...
@TypeConversion
Parameter | Required | Default | Notes |
---|---|---|---|
key | no | The annotated property/key name | The optional property name mostly used within TYPE level annotations. |
type | no | ConversionType.CLASS | Enum value of ConversionType. Determines whether the conversion should be applied at application or class level. |
rule | no | ConversionRule.PROPERTY | Enum value of ConversionRule. The ConversionRule can be a property, a Collection or a Map. |
converter | either this or value |
| The class name of the TypeConverter to be used as converter. |
value | either converter or this |
| The value to set for ConversionRule.KEY_PROPERTY. |
The TypeConversion annotation can be applied at property and method level.
Example:
...
...
Validation Annotations
If you want to use annotation based validation, you have to annotate the class or interface with Validation Annotation.
...