Class RuntimeAssociation<T>
java.lang.Object
io.micronaut.data.model.runtime.RuntimePersistentProperty<T>
io.micronaut.data.model.runtime.RuntimeAssociation<T>
- Type Parameters:
T- the owning type
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named, Association, PersistentElement, PersistentProperty
A runtime representation of
Association.- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface PersistentProperty
PersistentProperty.EnumConstant -
Field Summary
Fields inherited from class RuntimePersistentProperty
EMPTY_PROPERTY_ARRAYFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionThe associated entity.Retrieves the inverse side of the association.getKind()booleanbooleanWhether a property is required to be specified.Methods inherited from class RuntimePersistentProperty
equals, getAlias, getAnnotationMetadata, getArgument, getConverter, getDataType, getEnumConstants, getJsonDataType, getName, getOwner, getPersistedName, getProperty, getType, getTypeName, hashCode, isAssignable, isAssignable, isConstructorArgument, isEnum, isOptional, isReadOnly, toStringMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface Association
doesCascade, getCascadeTypes, getInversePathSide, hasDeclaredAliasName, isBidirectionalMethods inherited from interface PersistentElement
getPersistedNameMethods inherited from interface PersistentProperty
getAlias, getCapitalizedName, getCapitilizedName, getConverter, getDataType, getEnumConstants, getJsonDataType, getName, getOwner, getTypeName, isAssignable, isAssignable, isAutoPopulated, isConstructorArgument, isEmbedded, isEnum, isGenerated, isOptional, isReadOnly
-
Method Details
-
isForeignKey
public boolean isForeignKey()- Specified by:
isForeignKeyin interfaceAssociation- Returns:
- Whether the association is a foreign key association
-
getAliasName
- Specified by:
getAliasNamein interfaceAssociation- Returns:
- The alias name representation.
-
getKind
- Specified by:
getKindin interfaceAssociation- Returns:
- The relationship kind
-
isRequired
public boolean isRequired()Description copied from interface:PersistentPropertyWhether a property is required to be specified. This returns false if the property is both not nullable and not generated.- Specified by:
isRequiredin interfacePersistentProperty- Returns:
- True if the property is required
- See Also:
-
getInverseSide
Description copied from interface:AssociationRetrieves the inverse side of the association. If there is one.- Specified by:
getInverseSidein interfaceAssociation- Returns:
- The association.
-
getAssociatedEntity
Description copied from interface:AssociationThe associated entity.- Specified by:
getAssociatedEntityin interfaceAssociation- Returns:
- The associated entity
-