With Astah Professional, you can create ER Diagrams (Entity-Relationship Diagrams) using either IDEF1X or IE notations. You can also auto-generate ER diagrams by reversing tables from your database.
All models are stored centrally, making it easy to convert ER models into other models like UML Class diagrams.
You can generate ER Diagrams automatically by importing database tables using the DB Reverse Plug-in.
Astah allows you to manage both Logical and Physical names for entities. You can switch between these two types using:
There are three ways to switch the display of names logical or physical.
1. Right-click on the diagram and select [Diagram Model Type] from its pop-up menu.
2. Click [Diagram Model Type] in the Structure Tree.
3. Switch from the ER Diagrams’ Property View (bottom-left pane).
TIP: You can set the default name type in [Tools] → [System Properties] → [ER Diagram].
You can switch between IDEF1X and IE notations for ER diagrams.
1. Right-click on the ER diagram and select [Diagram Notation].
2. Alternatively, switch from theER Diagram’s Property View.
Astah provides several ways to create ER Entities in the Diagram Editor page.
There are a few ways to add Primary keys and Attributes to ER Entities.
One is using “Suggest Feature”. When you have a mouse over an ER Entity, a few mini icons will appear. To add a Primary key, click the red button and to add an Attribute, click the orange one.
Once you add one, you can create another by hitting the [Enter] key.
Since version 8.5, you are able to add Primary keys and Attributes by pasting text.
There are three display levels for ER Entities. Entity, Primary key and Attribute.
You can change it from ER Entities pop-up menu – [Display Level].
You can create ER Domains from pop-up menu of [Domain] in the tree view.
You can also add more than one ER Domain at once.
1. Click [Add ER Domains] in the tree view or go to [Tools] – [ER Diagram] – [Add ER Domains].
2. Specify the domain data in the list.
You can drag a Domain from the Tree to an ER Entity directly on the diagram.
Select Identifying Relationship, Non-Identifying Relationship or Many-to many Relationships from the Tool palette and click two Entities to connect.
IDEF1X | IE | Relationship type |
---|---|---|
Identifying Relationship | ||
Non-Identifying Relationship | ||
Many-to-many Relationship |
You can export the Entity’s definition as a comment by configuring so in the [Option] menu.
You can set the default Data type for an Entity attribute by marking it at [Default Type].
You can export a list of ER Domains, Entities and each Entity’s detailed information to Excel file.
1. Go to [Tools] – [ER Diagram] – [Export Entity Definition Report].
2. A list of domains, entities and each entity information would be exported.
3. Enter the new Data Type in this dialogue and click [OK].
Logical Name of Attribute | $each.entity.each.attribute.logical_name |
---|---|
Physical Name of Attribute | $each.entity.each.attribute.physical_name |
Domain Name of Attribute | $each.entity.each.attribute.domain |
Primary Key Flag of Attribute | $each.entity.each.attribute.pk |
Foreign Key Flag of Attribute | $each.entity.each.attribute.fk |
NotNull Flag of Attribute | $each.entity.each.attribute.notnull |
Reference of Attribute | $each.entity.each.attribute.ref |
Datatype of Attribute | $each.entity.each.attribute.type |
Length/Precision of Attribute | $each.entity.each.attribute.length_precision |
Initial Value of Attribute | $each.entity.each.attribute.initial_value |
TaggedValue of Attribute | $each.entity.each.attribute.initial_value |