注释类型 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 Any for further information.
    作者:
    Emmanuel Bernard, Steve Ebersole
    另请参阅:
    Any
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      javax.persistence.Column metaColumn
      Metadata discriminator column description, This column will hold the meta value corresponding to the targeted entity.
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      javax.persistence.FetchType fetch
      Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.
      String metaDef
      Metadata definition used.
    • 元素详细资料

      • metaColumn

        javax.persistence.Column metaColumn
        Metadata discriminator column description, This column will hold the meta value corresponding to the targeted entity.
      • metaDef

        String metaDef
        Metadata definition used. If defined, should point to a @AnyMetaDef name If not defined, the local (ie in the same field or property) @AnyMetaDef is used
        默认值:
        ""
      • fetch

        javax.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.
        默认值:
        javax.persistence.FetchType.EAGER