Package io.micronaut.data.model
Interface Association
- All Superinterfaces:
- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource,- io.micronaut.core.naming.Named,- PersistentElement,- PersistentProperty
- All Known Subinterfaces:
- Embedded
- All Known Implementing Classes:
- RuntimeAssociation,- SourceAssociation
A property that represents an association.
- Since:
- 1.0
- Author:
- graemerocher
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleandoesCascade(Relation.Cascade... types) Whether this association cascades the given types.default String@NonNull PersistentEntityThe associated entity if any.default EnumSet<Relation.Cascade>default Optional<PersistentAssociationPath>Retrieves the inverse side path of the association.default Optional<? extends Association>Retrieves the inverse side of the association.default Relation.KindgetKind()default booleandefault booleanWhether the relationship is bidirectional.default booleanMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.data.model.PersistentElementgetPersistedNameMethods inherited from interface io.micronaut.data.model.PersistentPropertygetCapitilizedName, getConverter, getDataType, getJsonDataType, getName, getOwner, getTypeName, isAssignable, isAssignable, isAutoPopulated, isConstructorArgument, isEnum, isGenerated, isOptional, isReadOnly, isRequired
- 
Method Details- 
getAliasName- Returns:
- The alias name representation.
 
- 
hasDeclaredAliasNamedefault boolean hasDeclaredAliasName()- Returns:
- whether this Association has a declared alias name
- Since:
- 3.8
 
- 
getAssociatedEntityThe associated entity if any.- Returns:
- The associated entity
 
- 
getInverseSideRetrieves the inverse side of the association. If there is one.- Returns:
- The association.
 
- 
getInversePathSideRetrieves the inverse side path of the association. If there is one.- Returns:
- The association.
 
- 
isBidirectionaldefault boolean isBidirectional()Whether the relationship is bidirectional.- Returns:
- True if it is bidirectional.
 
- 
getKind- Returns:
- The relationship kind
 
- 
isForeignKeydefault boolean isForeignKey()- Returns:
- Whether the association is a foreign key association
 
- 
doesCascadeWhether this association cascades the given types.- Parameters:
- types- The types
- Returns:
- True if it does, false otherwise.
 
- 
getCascadeTypes
 
-