Castor JDO is an OpenSource object-relational mapping tool
developed by Exolab (
One of the most difficult task when using this framework is
writing the mapping file between java classes and RDBMS tables.
The purpose of the castor doclet is to generate this mapping
file from simple javadoc tags added in the source code.
It is similar in function with the Xdoclet castor subtask,
but without being dedicated to Entity EJBs.
Another advantage of Castor-Doclet is its capacity to generate
a DDL file for different databases.
The project was initially developped by Herve Tchepannou
and Mauch Thorsten (see
) but it was no longer maintained.
In order to use it in an enterprise project, I had to
correct some bugs and add support for Oracle and DB2
As many Castor users have expressed the need to generate
mapping/DDL file on the castor mailing list, it seems that
the best way to share the new doclet version is a publicly
accessible development server such as Sourceforge.