Annotation Type PropagateNull


@Retention(RUNTIME) @Target({PARAMETER,FIELD,METHOD,TYPE}) @Beta public @interface PropagateNull
Signals that the annotated property signals the presence of the mapped type: reflective mappers should map a null bean if this property is null, rather than a present bean with a null property value. This is useful e.g. for a LEFT OUTER JOIN or an optionally-present compound value type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    When annotating a type, the value is the column name to check for null.
  • Element Details

    • value

      String value
      When annotating a type, the value is the column name to check for null. When annotating a property, the value is unused: instead, the property value is tested against null.
      Returns:
      the column name whose null-ness shall be propagated
      Default:
      ""