public interface Association extends PersistentProperty
Modifier and Type | Method and Description |
---|---|
default boolean |
doesCascade(Relation.Cascade... types)
Whether this association cascades the given types.
|
default java.lang.String |
getAliasName() |
PersistentEntity |
getAssociatedEntity()
The associated entity if any.
|
default java.util.Optional<? extends Association> |
getInverseSide()
Retrieves the inverse side of the association.
|
default Relation.Kind |
getKind() |
default boolean |
isBidirectional()
Whether the relationship is bidirectional.
|
default boolean |
isForeignKey() |
getCapitilizedName, getDataType, getName, getOwner, getTypeName, isAssignable, isAssignable, isConstructorArgument, isEnum, isGenerated, isNullableMetadata, isOptional, isReadOnly, isRequired
getPersistedName
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
default java.lang.String getAliasName()
@NonNull PersistentEntity getAssociatedEntity()
default java.util.Optional<? extends Association> getInverseSide()
default boolean isBidirectional()
@NonNull default Relation.Kind getKind()
default boolean isForeignKey()
default boolean doesCascade(Relation.Cascade... types)
types
- The types