注释接口 OneToMany


@Documented @Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface OneToMany
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The property that owns the association.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
     
    This configuration is used by object fetcher.
  • 元素详细资料

    • mappedBy

      String mappedBy
      The property that owns the association.
      返回:
      A property name of associated entity.
    • orderedProps

      OrderedProp[] orderedProps
      This configuration is used by object fetcher.

      Object fetcher supports property-level filter so that the order by associated objects can be dynamically controlled. However, fetching association property with property-level filter ignores the association cache

      In order to resolve this problem, you can specify the default order for associated objects

      返回:
      The ordered properties of associated objects
      默认值:
      {}
    • isTargetTransferable

      boolean isTargetTransferable
      默认值:
      false