Annotation Interface ManyToMany
Annotation used to specify a many-to-many relationship between entities.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescription(Optional) Specifies the cascade operations to be applied to the relationship.(Optional) The name of the field on the target entity that owns the relationship.
-
Element Details
-
mappedBy
String mappedBy(Optional) The name of the field on the target entity that owns the relationship.- Returns:
- The name of the field that owns the relationship.
- Default:
""
-
cascade
CascadeType[] cascade(Optional) Specifies the cascade operations to be applied to the relationship.- Returns:
- The cascade operations.
- Default:
{}
-