Chapter 3 Building Structural Diagrams


Migrating association roles in a class diagram

You can migrate association roles and create attributes before generation. This is very convenient for many reasons including data type customization and the ability to change the attribute order in the list of attributes. The last feature is especially important in XML.

Regardless of the navigability, the migration creates an attribute and sets its properties as follows:

Migration rules

The following rules apply when migrating association roles:

After migration, the property sheet of the new attribute displays the name of the association in the Migrated from box in the Detail tab.

Migrating navigable roles

You can migrate the navigable role of an association and turn it into an attribute:

Steps To migrate navigable roles:

  1. Right-click the association in the diagram.
  2. Select Migrate→Migrate Navigable Roles from the association contextual menu.


    An attribute is created and named after the navigable role of the association followed by the code of the classifier.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.