注释接口 ManyToMany
@Documented
@Retention(RUNTIME)
@Target(allowedTargets=PROPERTY)
@Target(METHOD)
public @interface ManyToMany
-
可选元素概要
可选元素修饰符和类型可选元素说明The property that owns the association.This configuration is used by object fetcher.
-
元素详细资料
-
mappedBy
String mappedByThe property that owns the association. Required unless the relationship is unidirectional.Once `mappedBy` is specified, the current property is just a mirror of the property in the opposite entity that truly owns this association. Do not use `@JoinColumn` or `@JoinTable` for association mapping.
Unlike JPA, for bidirectional associations, Jimmer allows developers to arbitrarily decide which side to be `mappedBy` side, which does not affect save behaviors.
- 返回:
- 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
- 默认值:
{}
-