Annotation Interface BeanAlias


@Target({FIELD,METHOD,RECORD_COMPONENT}) @Retention(RUNTIME) public @interface BeanAlias
BeanAlias provides a way for a source-class to indicate which field in the target-class the annotated field should be mapped to.

The BeanAlias-annotation works well in concert with the BeanProperty-annotation.

While a target-class may contain field annotated with the BeanAlias-annotation, during mapping, those annotations will be ignored. For equivalent functionality on the target-side, use the BeanProperty-annotation on the relevant fields.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details