Annotation Interface Unwrapped.Nullable

Enclosing class:
Unwrapped

@Unwrapped(onEmpty=USE_NULL) @Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) @Nonnull(when=MAYBE) public static @interface Unwrapped.Nullable
Shortcut for a nullable unwrapped property.
 @Unwrapped.Nullable private Address address;
 
as alternative to the more verbose
 @Unwrapped(onEmpty = USE_NULL) @javax.annotation.Nonnull(when = When.MAYBE) private Address address;
 
Author:
Christoph Strobl
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • prefix

      @AliasFor(annotation=Unwrapped.class, attribute="prefix") String prefix
      Returns:
      prefix for columns in the unwrapped value object. An empty String by default.
      Default:
      ""
    • value

      @AliasFor(annotation=Unwrapped.class, attribute="prefix") String value
      Returns:
      value for columns in the unwrapped value object. An empty String by default.
      Default:
      ""