Interface Association

    • Method Detail

      • getAliasName

        default java.lang.String getAliasName()
        Returns:
        The alias name representation.
      • hasDeclaredAliasName

        default boolean hasDeclaredAliasName()
        Returns:
        whether this Association has a declared alias name
        Since:
        3.8
      • getAssociatedEntity

        @NonNull
        PersistentEntity getAssociatedEntity()
        The associated entity if any.
        Returns:
        The associated entity
      • getInverseSide

        default java.util.Optional<? extends Association> getInverseSide()
        Retrieves the inverse side of the association. If there is one.
        Returns:
        The association.
      • getInversePathSide

        default java.util.Optional<PersistentAssociationPath> getInversePathSide()
        Retrieves the inverse side path of the association. If there is one.
        Returns:
        The association.
      • isBidirectional

        default boolean isBidirectional()
        Whether the relationship is bidirectional.
        Returns:
        True if it is bidirectional.
      • getKind

        @NonNull
        default Relation.Kind getKind()
        Returns:
        The relationship kind
      • isForeignKey

        default boolean isForeignKey()
        Returns:
        Whether the association is a foreign key association
      • doesCascade

        default boolean doesCascade​(Relation.Cascade... types)
        Whether this association cascades the given types.
        Parameters:
        types - The types
        Returns:
        True if it does, false otherwise.
      • getCascadeTypes

        default java.util.EnumSet<Relation.Cascade> getCascadeTypes()