Package io.micronaut.data.model.runtime
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
-
Field Summary
Fields inherited from class io.micronaut.data.model.runtime.RuntimePersistentProperty
EMPTY_PROPERTY_ARRAYFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionThe associated entity if any.Retrieves the inverse side of the association.getKind()booleanbooleanWhether a property is required to be specified.Methods inherited from class io.micronaut.data.model.runtime.RuntimePersistentProperty
getAnnotationMetadata, getArgument, getConverter, getDataType, getJsonDataType, getName, getOwner, getPersistedName, getProperty, getType, getTypeName, isAssignable, isAssignable, isConstructorArgument, isEnum, isOptional, isReadOnly, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 io.micronaut.data.model.Association
doesCascade, getCascadeTypes, getInversePathSide, hasDeclaredAliasName, isBidirectionalMethods inherited from interface io.micronaut.data.model.PersistentElement
getPersistedNameMethods inherited from interface io.micronaut.data.model.PersistentProperty
getCapitilizedName, getConverter, getDataType, getJsonDataType, getName, getOwner, getTypeName, isAssignable, isAssignable, isAutoPopulated, isConstructorArgument, 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 if any.- Specified by:
getAssociatedEntityin interfaceAssociation- Returns:
- The associated entity
-