Annotation Interface OneToMany
Indicates a One-to-Many association between entities.
The annotated field represents the "one" side of the association,
while the referenced entity represents the "many" side.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDefines the cascade operations to be applied to the associated entities when operations are performed on the owning entity.The field that owns the relationship.
-
Element Details
-
mappedBy
String mappedByThe field that owns the relationship. Required unless the relationship is unidirectional.- Returns:
- the field that owns the relationship
- Default:
""
-
cascade
CascadeType[] cascadeDefines the cascade operations to be applied to the associated entities when operations are performed on the owning entity.- Returns:
- the cascade operations to be applied
- Default:
{}
-