Package io.micronaut.context.annotation
Annotation Interface Mapper.Mapping
- Enclosing class:
- Mapper
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Repeatable(Mapper.class)
public static @interface Mapper.Mapping
The mappings.
-
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
String defaultValue- Returns:
- The default value to use.
- Default:
- ""
-
format
String format- Returns:
- The format to convert numbers or dates into a string.
- Default:
- ""
-