Annotation Interface Embedded.Empty

Enclosing class:
Embedded

@Embedded(onEmpty=USE_EMPTY) @Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) @Nonnull(when=NEVER) public static @interface Embedded.Empty
Shortcut for an empty embedded property.
 @Embedded.Empty private Address address;
 
as alternative to the more verbose
 @Embedded(onEmpty = USE_EMPTY) @javax.annotation.Nonnull(when = When.NEVER) private Address address;
 
Author:
Christoph Strobl
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description