Package io.micronaut.data.annotation
Annotation Interface Relation
Annotation used to indicate a field or method is a relation to another type. Typically not used
directly but instead mapped to.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Cascade type handling for different associations.static enum
The relation kind. -
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionHow to cascade insert/delete operations to the associated entity.
-
Element Details
-
value
Relation.Kind value- Returns:
- The relation kind.
-
-
-
mappedBy
String mappedBy- Returns:
- The inverse property that this relation is mapped by
- Default:
- ""
-
cascade
Relation.Cascade[] cascadeHow to cascade insert/delete operations to the associated entity. Default is none.- Returns:
- The cascade handling
- Default:
- {NONE}
-