Annotation Interface EmbeddedParameters


@Retention(RUNTIME) @Target(FIELD) public @interface EmbeddedParameters
Defines additional parameters for Embedded attributes.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If false, the embedded entity can not be null.
  • Element Details

    • nullAllowed

      boolean nullAllowed
      If false, the embedded entity can not be null. This means you can always provide an instance when persisting the entity, even if all its attributes are null.

      By default, the embedded entity can be null. In this case ORM does not create the instance on loading if all attributes are null.

      Default:
      true