OutSystems Service Studio 4.1 Help
Using the Entity Diagram
You can use the
Entity
diagram, available in the Edit
menu, on the Toolbar
or by right-clicking on the Entities folder in the eSpace tree, to get
a graphical overview of your entities and their relationships (An association between two entities that is implement through a special
data type: <Entity> identifier. A relationship can be one-to-one,
one-to-many or many-to-many.).
The following picture presents an example of an entity diagram with two independent entities:

Simply drag the entities and drop them onto the Entity diagram. When there is a relationship between the entities present in this diagram, OutSystems Service Studio automatically connects them with the appropriate connector. The possible connectors are the following:
Simple line: Represents a One to One relationship.
Crow foot: Represents a One to Many or Many to Many relationships.
Besides the type of connector, you can also have a number associated with the connector when there are several relationships between the same entities. In the next picture, you have a situation with two relationships between Customer and ZipCode: one due to the reference attributes HomeZipCode and OfficeZipCode.

Once the entity is dropped in the Entity diagram, you can:
Edit the entity: Double-click on the entity and the Edit Entity window is launched.
Hide the entity in the Entity diagram: Right-click on the entity and select the "Hide" option. All the relationships relative to this entity are also deleted.
See Also