Note: |
Views are currently supported for are currently supported for: DB2; SQL Server; Firebird/Interbase; Informix; Ingres; Oracle 9i, 10g and 11g; MySQL; PostgreSQL; Sybase Adaptive Server Enterprise (ASE) and Sybase Adaptive Server Anywhere (ASA). |
Create a View Class
To create a database view, follow the steps below:
- Select the Settings | UML menu option. The UML Types dialog displays, at the Stereotypes tab.

- In the Stereotype field type view, and in the Base Class field type class. Click on the Save button.
- Select a suitable diagram.
- Open the Class pages on the Enterprise Architect UML Toolbox.
- Click on the Class element in the list of elements and then click on the diagram.
- In the Class Properties dialog, in the Stereotype field type view.
- Enter a name for the view.
- Click on the OK button to close the dialog. You now have a database view.
- Right-click on the element and select the Properties context menu option. The View Properties dialog now displays.

- From the Database drop-down list, select the target DBMS to model. The default database displays if it has already been set.
- Click on the Save and Close buttons.
Create a View
- Create a Dependency link from the view Class to the table or tables on which the view depends.
- Open the view Properties dialog.
- Enter the full view definition in the View definition field.
- Click on the Save button to save your definition. An example is shown below:



