Chapter 9 Working with Object-Oriented Models
You can modify the default mapping created for an attribute. The Attribute Mappings property sheet can be used to fine tune the mapping between an attribute in the current class and columns in data source tables.
In the "Mapped to" box, you can see the attribute expression. By default, attributes used in this expression are prefixed by their classes. You can customize the content of the Mapped To box by inserting comments manually. You can also click the Ellipsis button and use the SQL Editor to modify the default mapping syntax. To recover the default column expression click the User-defined tool.
In the Sources tab it is possible to select several columns and map them to the current attribute. To do so, you have to use the Add Sources tool to select columns from the list of columns belonging to the tables mapped to the current class. When you add columns from the Sources tab, and the column expression has not been modified by the user, the content of the Mapped To box in the General tab is updated.
To modify the mapping of an attribute:
Copyright (C) 2006. Sybase Inc. All rights reserved. |
![]() |