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 SummaryFields inherited from class io.micronaut.data.model.runtime.RuntimePersistentPropertyEMPTY_PROPERTY_ARRAYFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescription@NonNull RuntimePersistentEntity<?>The 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.RuntimePersistentPropertyequals, getAlias, getAnnotationMetadata, getArgument, getConverter, getDataType, getJsonDataType, getName, getOwner, getPersistedName, getProperty, getType, getTypeName, hashCode, isAssignable, isAssignable, isConstructorArgument, isEnum, isOptional, isReadOnly, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.AssociationdoesCascade, getCascadeTypes, getInversePathSide, hasDeclaredAliasName, isBidirectionalMethods inherited from interface io.micronaut.data.model.PersistentElementgetPersistedNameMethods inherited from interface io.micronaut.data.model.PersistentPropertygetAlias, getCapitalizedName, getCapitilizedName, getConverter, getDataType, getJsonDataType, getName, getOwner, getTypeName, isAssignable, isAssignable, isAutoPopulated, isConstructorArgument, isEnum, isGenerated, isOptional, isReadOnly
- 
Method Details- 
isForeignKeypublic boolean isForeignKey()- Specified by:
- isForeignKeyin interface- Association
- Returns:
- Whether the association is a foreign key association
 
- 
getAliasName- Specified by:
- getAliasNamein interface- Association
- Returns:
- The alias name representation.
 
- 
getKind- Specified by:
- getKindin interface- Association
- Returns:
- The relationship kind
 
- 
isRequiredpublic 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 interface- PersistentProperty
- Returns:
- True if the property is required
- See Also:
 
- 
getInverseSideDescription copied from interface:AssociationRetrieves the inverse side of the association. If there is one.- Specified by:
- getInverseSidein interface- Association
- Returns:
- The association.
 
- 
getAssociatedEntityDescription copied from interface:AssociationThe associated entity if any.- Specified by:
- getAssociatedEntityin interface- Association
- Returns:
- The associated entity
 
 
-