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.
Copyright © 1997, 2004, Oracle. All rights reserved.