|
![]() |
The <Gen-it> Manual |
|
6. XMI using Rational Rose ExampleOn this page we will give you an example of how to create a XMI file using Rational Rose. The first thing you must do is install Rational Rose and the Unisys XMI plug-in. Both can be downloaded from the Rational website. When you have installed Rational Rose you can create a new model for
your database modeling. We recommend that you use a separate model for
your database model because every class in the model will be exported
to the GXF file. When you add other classes to the model these classes
end up in the GFX file (you can use packages and change the XMI.xsl
transformation template if you want to use both types of classes in
your model). Model primary and foreign keys as attributes (this isn't normally done
in logical models, but remember that we are actually creating a physical
model of the database).
A final note: remember that if you want to use the all the names in your model in your database and programming language that you can't use any reserved words. In the example page you can see a class named "OrderTotal". We didn't use "Order" because this is a reserved word in SQL. When your model is ready you can export it to XMI using the menu option 'export to XML' which can be found under the file menu.
|
|||||||||||||