-
Notifications
You must be signed in to change notification settings - Fork 2
Example
The Bank example contains several concepts the editor supports. In the diagram we can see the full range of model elements, from simple natural types over compartment types and roles up to relations and fulfillments. In the diagram, data types such as String or Integer are omitted, but they must be contained in the graphical model.

Let's go over the shown elements bit-by-bit. Person, Company, and Account are simple natural types which fulfill different roles (indicated by the fulfillment arrows). Bank and Transaction are both compartment types with child models. The compartment type Transaction fulfills the role type Transaction. The Role Group contained in Transaction has two elements which are in an irreflexive relation, i.e., a fulfilling account can either be source or target, but not both. The Bank compartment type does not introduce new concepts.
Note that all cardinalities (of relations, role groups, and compartment type child elements) are specified via simple Strings and have to conform to the well-known UML style notation (e.g. 1..* or 0..1).
You can get the graphical model from our GitHub page: ORM/Example/Bank.orm.