panSL main page

All panSL samples

Relations

Showing relations between entities. A person may have zero, one or many friends. A person may own zero, one or many cars while a car may only be owned by one person.
Please note that not all possibilities for relations are shown in this relatively simple example. Tree-structures and many-to-many relations are also possible with panSL. See the concept SubName for how you may specify roles like "Owns" and "Is owned by" in relations.


Try out this schema now! (please allow a few seconds for your new database to be initialized.)

Person         
Name
Address
Friend RelationMany
CarOwner RelationMany

Car
Mark
Model
CarOwner RelationOne

ER-diagram (beta)

Note that in addition to generation of ER-Diagram the panSL Implementation AgoRapide may also be used to also generate database-schema (SQL) and source code for a variety of programming languages, tools and development architectures.

Last updated 2012-05-02