Create an ORM diagram
The ORM Diagram template in Microsoft Office Visio includes all the shapes that you need to use the Object Role Modeling (ORM) method to capture business rules and to design databases. ORM is a semantic modeling approach that describes the world in terms of objects and the roles that they play.
-
On the File menu, point to New, point to Software and Database, and then click ORM Diagram.
Tip: Before you create an ORM diagram, organize your thoughts by writing down the information that you want the database to include. Use simple sentences to describe the objects that exist, how they are identified, and what roles they play.
-
Add and name an object type (entity):
-
Drag an Entity shape (to symbolize an object type) from ORM Diagram onto the drawing page.
-
While the shape is selected, type the entity type's name.
-
Press ENTER, and then type the entity reference mode in brackets.
-
-
Add and name a value type:
-
Drag a Value shape from ORM Diagram onto the drawing page.
-
While the shape is selected, type the value type's name.
-
-
Indicate a subtype:
-
Drag a Subtype Connector shape from ORM Diagram onto the drawing page.
-
Glue the end point to a connection point on the subtype entity shape.
The end point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Glue the begin point (the arrowhead end) to a connection point on the other entity type.
-
-
Do one of the following:
-
Indicate a relationship, role, or fact between the object types:
-
Drag a predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary) from ORM Diagram onto the drawing page.
Use a predicate shape that contains enough role boxes to relate all of the object types (entity shapes) that are involved in the relationship. For example, use a Ternary shape to indicate relationships among three entities.
-
Drag a Role Connector shape from ORM Diagram onto the drawing page.
-
Glue the begin point of the Role Connector shape to a connection point on an object type (entity shape) for which you want to define a relationship.
The begin point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Glue the end point of the Role Connector shape to the appropriate role box on the predicate shape (from step 1).
-
Double-click the predicate shape. Place the insertion point between ellipses (or placeholders), and then type a name for the role an entity type plays.
-
Repeat steps 2 through 5 for each entity for which you want to define a relationship.
-
-
Indicate a relationship, role, or reference between an entity and a value:
-
Drag the Role Connector shape from ORM Diagram onto the drawing page.
-
Glue the begin point of the Role Connector shape to a connection point on an entity type (entity shape) for which you want to define a relationship.
The begin point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Drag a Binary or Vertical Binary shape from ORM Diagram onto the drawing page.
-
Glue the end point of the Role Connector shape to the end of the Binary or Vertical Binary shape.
-
Double-click the Binary shape to edit the text. Place the insertion point between ellipses or placeholders, and then type a name for the role that an entity plays.
Tip: To move the ellipses and names on a Vertical Binary shape to the other side of the shape, right-click the shape, point to Shape on the shortcut menu, and then click Flip Horizontal.
-
-
-
Show a nested object by creating an objectified predicate:
-
Click the Drawing Tools button to display the Drawing Tools toolbar, and then click the Rectangle tool.
-
Draw a rectangle around the predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary) that you want to identify as an objectified predicate.
-
Right-click the rectangle, point to Shape on the shortcut menu, and then click Send To Back.
-
With the rectangle still selected, on the Format menu, click Corner Rounding, click the third option on the top row, and then click OK.
-
-
Do one of the following:
-
Indicate a mandatory role constraint:
-
Drag the Mand. Role Connector shape from ORM Diagram onto the drawing page.
-
Glue the begin point with the black circle to a connection point on an object (entity shape).
The begin point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Glue the end point of the Mand. Role Connector shape to a predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary).
-
-
Indicate a uniqueness constraint:
-
Drag the Uniqueness Constraint shape from ORM Diagram onto the drawing page.
-
Place the shape directly above or below the predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary) you want to constrain.
-
Drag one of the end points ( or ) so that the arrow stretches across the appropriate role box on the predicate shape.
-
-
Indicate a frequency constraint:
-
Drag the Frequency Constraint shape from ORM Diagram onto the drawing page.
-
Place the shape near the predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary) that you want to constrain.
-
With the shape selected, type the frequency that you want.
-
-
Indicate a set comparison or equality constraint:
-
Drag the Subset Constraint or Equality Constraint shape from ORM Diagram onto the drawing page.
-
Place the shape between the predicate shapes (Unary, Binary, Vertical Binary, Ternary, or Quaternary) with roles that you want to constrain.
-
Glue the begin point of the Subset Constraint or Equality Constraint shape to a connection point on the appropriate role box on the predicate shape.
The begin point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Glue the end point of the Subset Constraint or Equality Constraint shape to the appropriate role box of the other predicate shape.
-
-
Indicate a ring constraint:
-
Drag the Ring Constraint shape from ORM Diagram onto the drawing page.
-
Place the shape near the predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary) containing the two roles that you want to constrain.
-
Do one of the following:
-
If the two roles are part of a longer predicate, glue each end point ( and ) of the Ring Constraint shape to one of the roles on the predicate shape.
-
If the two roles are a binary predicate, select the Ring Constraint shape, and then on the Format menu, click Line. In the Pattern list, click None, and then click OK.
-
-
Right-click the Ring Constraint shape, and then click the type of ring constraint you want on the shortcut menu.
-
-
Indicate an external constraint:
-
Drag an external constraint shape (Ext. Freq. Constraint, Ext. P Constraint, Ext. Mand. Constraint, or Ext. Uniq. Constraint) from ORM Diagram onto the drawing page.
-
Place the shape near the predicate shapes that represent the roles that you want to constrain.
-
From ORM Diagram, drag a Constraint Connector shape onto the drawing page.
-
Glue the begin point of the constraint connector shape to a connection point on the external constraint shape.
The begin point turns red, indicating that the connector is glued to the shape. You can move the glued shapes without breaking the connection.
-
Glue the end point of the constraint connector shape to the appropriate role box on the predicate shape (Unary, Binary, Vertical Binary, Ternary, or Quaternary).
-
To change the frequency for the external constraint shape (Ext. Freq. Constraint, Ext. P Constraint, Ext. Mand. Constraint, or Ext. Uniq. Constraint), select the shape, and then type the frequency that you want.
-
-
-
Save the diagram.
Thanks for sharing this useful information.
ReplyDeleteORM agency in new york
best orm agency in usa