Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Castor DDL generator document


Castor DDL script generator from Castor JDO mapping is a tool which generates a specific RDBMS DDL script for a set of Castor mappings. The DDL script includes commands for creating tables, creating unique keys, adding sequences. Normally, developer creates mapping files, Java objects, and DDL script to create database. This manual creation wastes so much time, re-do everything whenever a mapping is changed, and drives many invisible bugs: inconsistency between mapping and database, hard to test. This tool aims to create automatically DDL for a mapping.

Beside the Castor Source Generator, the Castor DDL script generator will make developer be more comfortable to use Castor. In the future, it can wrap together Castor source generator and Castor DDL generator to a complete tool.

Type mapping

Request Elements for Castor Mapping

Using DDL Generator