注释接口 ManyToManyView


@Documented @Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface ManyToManyView
In general, developers should use ManyToMany to map many-to-many associations, and the corresponding middle table should only have two foreign key fields. However, if developer want to add more business fields to the middle table, ManyToMany is no longer applicable and this annotation is unique choice.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The name of a one-to-many association property pointing from the current entity to the middle entity
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The name of a many-to-one association property pointing from the middle entity to target entity
  • 元素详细资料

    • prop

      String prop
      The name of a one-to-many association property pointing from the current entity to the middle entity
    • deeperProp

      String deeperProp
      The name of a many-to-one association property pointing from the middle entity to target entity
      默认值:
      ""