OpenPlant Project Administrator Help

Create New Relationship dialog

The following dialog displays letting you define a new relationship in the Schema Editor. The required components for a relationship are a Name for the relationship, and a Source class and a Target class which the relationship will apply to. The other fields in the dialog are optional.

When you click the Advanced button, additional options are displayed:

SettingDescription
Name Used to enter a name for the relationship.
Display Label Used to enter a label for the relationship which is displayed in Schema Editor.
Description Used to enter a description for the relationship.
Source Name Click the Browse icon next to the field to display the Select Class dialog. From there you can select a class name to use as the source.
  • Cardinality: Defines the number of occurrences of one item which is associated to the number of occurrences of another. For example, a Pipeline can have many segments, which means we need at least one Pipeline (0, 1) and many Segments (0, N) in the PIPELINE_HAS_SEGMENT relationship. But a piping port can have only one joint, but joint will always need more than 1 port. So, the relationship PORT_HAS_JOINT is N:1.
  • is polymorphic: When enabled, inherited objects can be associated too.
Target Name Click the Browse icon next to the field to display the Select Class dialog. From there you can select a class name to use as the target for the relationship. You can also determine a Cardinality value and whether the class Is polymorphic.
Strength tba