Generating the DDL for your Instance's Database
Sometimes its helpful to have the DDL for your instance's database. This can be used for a variety of purposes ranging from project documentation to replicating or migrating applications.
Procedure 3.16. To generate the DDL for your instance's database:
Using the Ant view, right click the Ant target gen-instance-schema-create There is an Ant target in your module project, , which when run will generate creation DDL based on your model files.
The DDL is generated based on the current model definitions, not the current database schema.