Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring Query Key Order

You can configure TopLink to maintain collections in order by query key.

Table 37-8 summarizes which relational mappings support this option.

Table 37-8 Relational Mapping Support for Query Key Order

Mapping Using TopLink Workbench
Using Java

Variable One-to-One Mapping


Supported.


Supported.


One-to-Many Mapping


Supported.


Supported.


Aggregate Collection Mapping


Unsupported.


Supported.



Using TopLink Workbench

To specify the order of a mapping's query keys, use this procedure:

  1. Select the mapped attribute in the Navigator. Its properties appear in the Editor.

  2. Click the Ordering tab. The Ordering tab appears.

    Figure 37-4 Ordering Tab

    Order Query Key options
  3. Complete the Ordering options on the tab.

Field Description
Query Key Specify the query key to order by.

Click Add to add query keys to, or Remove to remove query keys from the ordering operation.

Click Up or Down to change the sort order of selected query keys.

Order Specify if TopLink orders the selected query key in Ascending or Descending (alphabetical) order.