Specifying Collection Properties

Some relationship mapping types (Direct Collection Mappings, One-to-Many Mappings, and Many-to-Many Mappings) contain a Collection Options tab to allow you to specify collection options.

TopLink can populate a collection in ascending or descending order, upon your specification. Query keys are automatically created for and with the same name as all attributes mapped as direct-to-field, type conversion, object type, and serialized object mappings.

Figure 5-3 Collection Options

This figure shows Collection Options tab for a one-to-many mapping.

Collection options called out in Figure 5-3:

  1. Specify collection method.
  2. Specify query results ordering.

Related Topics

About TopLink Descriptors

About TopLink Mapping Types
Working with Common Mapping Properties
Working with Descriptors

 

Copyright © 1997, 2004, Oracle. All rights reserved.