Annotation Interface Mapper.Mapping
- Enclosing class:
Mapper
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Repeatable(Mapper.class)
public static @interface Mapper.Mapping
The mappings.
- Since:
- 4.1.0
- Author:
- Graeme Rocher
-
Field Details
-
MEMBER_TO
- See Also:
-
MEMBER_FROM
- See Also:
-
MEMBER_CONDITION
- See Also:
-
MEMBER_FORMAT
- See Also:
-
MEMBER_DEFAULT_VALUE
- See Also:
-
-
Element Details
-
to
String toThe property name to map to. When not specified assume the root bean is being mapped to.- Returns:
- name of the property to map to.
- Default:
""
-
from
String fromSpecifies the name of the property to map from. Can be an expression.- Returns:
- Name of the property to map from.
- Default:
""
-
condition
String condition- Returns:
- An expression the evaluates to true if the mapping should apply.
- Default:
""
-
defaultValue
-
format
-