Annotation Interface Mapper.Mapping

Enclosing class:
Mapper

@Retention(RUNTIME) @Target({METHOD,TYPE}) @Repeatable(Mapper.class) public static @interface Mapper.Mapping
The mappings.
  • Field Details

  • Element Details

    • to

      String to
      The 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 from
      Specifies 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:
      ""