注释接口 OneToMany
@Documented
@Retention(RUNTIME)
@Target(allowedTargets=PROPERTY)
@Target(METHOD)
public @interface OneToMany
-
必需元素概要
所需元素 -
可选元素概要
可选元素
-
元素详细资料
-
mappedBy
String mappedByThe property that owns the association.- 返回:
- A property name of associated entity.
-
orderedProps
OrderedProp[] orderedPropsThis 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
- 默认值:
{}
-