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 Field Ordering

If your object-relational data source driver uses JDBC indexed arrays, you can specify the order in which TopLink persists object attributes to define the field index.

Using Java

Use ObjectRelationalDescriptor method addFieldOrdering to specify the field ordering. Example 30-1 shows how to specify the order of the object-relational database fields OBJECT_ID, F_NAME, and L_NAME for the Employee descriptor.

Example 30-1 Field Ordering

descriptor.addFieldOrdering("ID");
descriptor.addFieldOrdering("F_NAME");
descriptor.addFieldOrdering("L_NAME");