@Target({METHOD,FIELD,TYPE})
@Retention(RUNTIME)
@Repeatable(XmlProperties.class)
public @interface XmlProperty
Annotation for a user defined property.
A single XmlProperty may be specified directly on a mapped attribute or its get/set method.
Multiple occurrences of XmlProperty can be wrapped into XmlProperties annotation.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionProperty name.String representation of XmlProperty value, converted to an instance of valueType(). -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameProperty name. -
value
String valueString representation of XmlProperty value, converted to an instance of valueType(). -
valueType
Class<?> valueTypeProperty value type.The value converted to valueType by ConversionManager.
If specified must be a simple type that could be handled by ConversionManager: numerical, boolean, temporal.
- Default:
java.lang.String.class
-