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
Nested ClassesModifier and TypeClassDescriptionstatic enumCascade type handling for different associations.static enumThe relation kind. - 
Required Element Summary
Required Elements - 
Optional Element Summary
Optional ElementsModifier 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}
 
 
 -