Relationships and Domains › Relationships in the Logical Model › Add a Hierarchical Recursive Relationship
Add a Hierarchical Recursive Relationship
You can add a hierarchical recursive (single-table recursion) relationship in a logical model when a parent entity or table can have any number of children, but a child can only have one parent. Perform the following steps to add a hierarchical recursive relationship:
- Click the Entity icon on the erwin Toolbox, then click anywhere on the diagram window.
- Name the parent entity or table and add the primary and non-key attributes or columns.
- Click the Non-identifying Relationship icon on the erwin Toolbox.
- Click the parent entity or table, pause briefly, then click the entity or table again.
- Double-click the relationship line to open the Relationships editor.
- Click the General tab, and enter a verb phrase to explain the recursive relationship.
- Click the Rolename tab, assign a descriptive rolename to the migrated foreign key attributes or columns based on the relationship, then click OK to close the Relationships editor.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|