Annotation Type ManyToAny


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface ManyToAny
    This is the collection-valued form of @Any definitions. Defines a ToMany-style association pointing to one of several entity types depending on a local discriminator.
    See Also:
    Any
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      jakarta.persistence.FetchType fetch
      Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.
    • Element Detail

      • fetch

        jakarta.persistence.FetchType fetch
        Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The EAGER strategy is a requirement on the persistence provider runtime that the value must be eagerly fetched. The LAZY strategy is applied when bytecode enhancement is used. If not specified, defaults to EAGER.
        Default:
        jakarta.persistence.FetchType.EAGER