Annotation Type ColumnName


@Retention(RUNTIME) @Target({PARAMETER,FIELD,METHOD}) public @interface ColumnName
Specify the mapping name for a property or parameter explicitly. This annotation is respected by:
  • BeanMapper, FieldMapper, and ConstructorMapper in core
  • The Kotlin data class mapper in KotlinPlugin
  • Immutables property definitions
Note that for beans (e.g. bindBean()), this annotation only applies to mapping, not parameter binding. Refer to such parameters by the property name (:firstName), not the column name (:first_name).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details