Creating the Sequence Table on the Database

Normally, the database administrator defines the sequence table or sequencing object. However, you can use TopLink's schema manager to define the sequence numbers using:

SchemaManager schemaManager = new SchemaManager(session);
schemaManager.createSequences();

You should execute this command only once. The SchemaManager creates a sequence entry for each registered descriptor.

Refer to the book OracleAS TopLink Application Developer's Guide for more information on using the schema manager to create number information in the database.


Related Topics

About TopLink Descriptors
Working with Descriptors
Setting Descriptor Information
Using Sequence Numbers with Entity Beans
Using Native Sequencing
Working with Sequencing
Preallocating Sequence Numbers

 

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