Interface CdsAssociationExtender


@Beta public interface CdsAssociationExtender
The CdsAssociationExtender allows to define and extend the underlying CdsElement of type CdsAssociationType.
  • Method Details

    • toOne

      CdsAssociationExtender toOne(String qualifiedName)
      Sets a to-one cardinality for the association to the given target entity.
      Parameters:
      qualifiedName - the qualified name of the target entity
      Returns:
      this CdsAssociationExtender
    • toMany

      CdsAssociationExtender toMany(String qualifiedName)
      Sets a to-many cardinality for the association to the given target entity.
      Parameters:
      qualifiedName - the qualified name of the target entity
      Returns:
      this CdsAssociationExtender
    • on

      Sets the on-condition for the association.
      Parameters:
      onCondition - the on-condition
      Returns:
      this CdsAssociationExtender
    • addAnnotation

      CdsAssociationExtender addAnnotation(String key, Object value)
      Adds an annotation to the element.
      Parameters:
      key - the annotation key
      value - the annotation value
      Returns:
      this CdsAssociationExtender
    • and

      Returns to the CdsEntityExtender that created this CdsAssociationExtender.
      Returns:
      the parent CdsEntityExtender to continue extending the entity