Using Mouse Gesture to Synchronize Class Diagrams and Entity Relationship Diagrams
Class diagrams are used to model the static behaviours of a system, while entity relationship diagrams illustrate the logical structure of the databases. As a classical entity relationship diagram focuses on data only, class diagrams go a step further by modeling the behavior as well. Using VP’s products, you can synchronize a class diagram to an entity relationship diagram by using mouse gestures which enable you to oversee the different focuses from both diagrams.
Synchronizing from Class Diagram to ERD
Create a new class diagram and draw the following class diagram.
Right-click on the diagram and hold on the mouse button to draw a line from left to right. Upon releasing the mouse button, the
Sync to Entity Relationship dialog box will be displayed.
Choose
ID from the
Primary Key drop down list for the
Order and
OrderLine classes. Click
OK button to close the dialog box.
An entity relationship diagram is generated automatically.

Synchronizing from ERD to Class Diagram
To synchronize an entity relationship diagram to class diagram, right-click on a source diagram and hold on the mouse button to draw a line from right to left. The entity relationship diagram will synchronize back to the class diagram when the mouse is released. After synchronization, the class diagram will be displayed as the active diagram.
Related Articles
Resources
-
-
-
-
Chapter 4 Object Model - This chapter shows how to depict the object models by using a Class Diagram or an EJB diagram, and describes the mapping from the object model to data model.
Chapter 5 Data Model - This chapter shows you how to depict the object models by using Entity Relationship Diagram and how to reverse database, and describes the mapping from the data model to the object model.
-