Annotation Interface Mapper.Mapping

Enclosing class:
Mapper

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

  • Element Details

    • to

      String to
      Returns:
      name of the property to map to.
    • 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:
      ""