Skip Headers

# Using TopLink Workbench

Previous

Next

To configure a relational descriptor as class or aggregate, use this procedure.

1. In the Navigator, select a relational descriptor.

2. Click the Class or Aggregate descriptor button on the mapping toolbar.

   You can also select the descriptor and choose Selected > Descriptor Type > Class or Aggregate from the menu or by right-clicking on the descriptor in the Navigator window and selecting Descriptor Type > Class or Aggregate from the context menu.

3. If you select Aggregate, specify each of the aggregate descriptor's attributes as a direct to field mapping. See Configuring a Relational Direct-to-Field Mapping for more information.

Although the attributes of a target class are not mapped directly to a data source until you configure an aggregate object mapping, you must still specify their mapping type in the target class's descriptor. This tells TopLink what type of mapping to use when you do configure the aggregate mapping in the source object's descriptor. For more information, see "Aggregate and Composite Descriptors in Relational Projects".

See Also

  Configuring a Descriptor
  Configuring a Relational Descriptor as a Class or Aggregate Type