Annotation Interface ManyToOne
Indicates a Many-to-One association between entities.
The annotated field represents the "many" side of the association,
while the referenced entity represents the "one" side.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDefines the cascade operations to be applied to the associated entity when operations are performed on the owning entity.Defines the fetching strategy to be used when retrieving the associated entity.
-
Element Details
-
cascade
CascadeType[] cascadeDefines the cascade operations to be applied to the associated entity when operations are performed on the owning entity.- Returns:
- the cascade operations to be applied
- Default:
{}
-
fetch
FetchType fetchDefines the fetching strategy to be used when retrieving the associated entity.- Returns:
- the fetching strategy
- Default:
EAGER
-