Architecting and designing > UML 2.0 Lite > Object/relational integration > Mapping a data model to a Class diagram > Procedure for mapping a logical data model to a class model
  
Procedure for mapping a logical data model to a class model
1 Open the Logical Entity Relation (ER) diagram that you want to convert to a class model.
2 If you only want to map a certain subset of entities and relationships on the diagram, select those entities and relationships through standard Windows techniques. (To generate for the entire diagram, or the entire package, you do not have to select anything.)
3 From the Dictionary menu, select Convert to Class Diagram.
4 In the System Architect - Convert ER - OO dialog, select the package that you want to map the logical data model to. You can type the name of a new package.
5 Select the class diagram that you want to map the logical data model to, or type a new diagram name. If you select an existing diagram, a merge will be performed.
6 Select the type of transfer:
All symbols
Maps all symbols in the currently open ER diagram to the class diagram.
Selected symbols
Maps only those symbols you selected in step 2 above, to the class diagram.
Entire model
Maps all symbols in the model to the class diagram.
7 Select an object-oriented language that you want to map the entity's attributes and data elements to:
Java type mapping to from data element types
Visual Basic type mapping to from data element types
C++ type mapping to from data element types
CORBA type mapping to from data element types
8 To create stereotypes on the Class Model based on Entity information, see Mapping a data model to a Class diagram, Specifics.
9 To map the direction of relationships on the ER diagram to navigability of association lines on the Class diagram, see Mapping a data model to a Class diagram, Specifics.
10 Click OK.
The appropriate parts of the class model will be mapped to the selected ER diagram.
See also
Mapping a data model to a Class diagram