Annotation Type AnyMetaDef


@Target({PACKAGE,TYPE,METHOD,FIELD}) @Retention(RUNTIME) public @interface AnyMetaDef
Defines @Any and @manyToAny metadata
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Hibernate type of the id column
    meta discriminator Hibernate type
    Matching discriminator values with their respective entity
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation If not defined, the metadata applies to the current property or field
  • Element Details

    • name

      String name
      If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation If not defined, the metadata applies to the current property or field
      Default:
      ""
    • metaType

      String metaType
      meta discriminator Hibernate type
    • idType

      String idType
      Hibernate type of the id column
      Returns:
    • metaValues

      MetaValue[] metaValues
      Matching discriminator values with their respective entity