Skip to content

How-to guide

Create a relationship

Connect two entities in the Modeler and choose the appropriate cardinality.

2 min

Objective

Express a business connection between two entities and define how many instances can take part in it.

Prerequisites

  • Two entities are visible in the same space.
  • You can edit the model.

Procedure

  1. Select the source entity.
  2. Choose Relationship from its action bar.
  3. Select the target entity.
  4. Name the relationship with an explicit business verb, such as delivers.
  5. Choose the cardinality, then confirm.

Creating a relationship from the selected card

CardinalityContractExample
One to oneOne source instance corresponds to one target instance.An Employee owns a Badge.
One to manyOne source can correspond to several targets.A Supplier delivers several Products.
Many to oneSeveral sources can correspond to one target.Several Orders belong to one Customer.
Many to manySeveral sources and targets can be connected.Products belong to several Categories.

Verification

An edge connects both cards. Select an entity and check the direction, name, and cardinality in the Relationships tab.

Common errors

  • A cardinality that is too broad permits inconsistent data: start from the actual business rule.
  • Opposite relationships with vague names are hard to distinguish: use a precise verb.
  • If the target cannot be found, check that both entities belong to the same space.

Next steps