Annotation Type ManyToAny


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

      Optional Elements 
      Modifier and Type Optional Element Description
      jakarta.persistence.FetchType fetch
      Specifies whether the value of the field or property should be fetched lazily or eagerly: FetchType.EAGER, the default, requires that the association be fetched immediately, but FetchType.LAZY is a hint which has no effect unless bytecode enhancement is enabled.
    • Element Detail

      • fetch

        jakarta.persistence.FetchType fetch
        Specifies whether the value of the field or property should be fetched lazily or eagerly:
        • FetchType.EAGER, the default, requires that the association be fetched immediately, but
        • FetchType.LAZY is a hint which has no effect unless bytecode enhancement is enabled.
        Default:
        jakarta.persistence.FetchType.EAGER