Castor Oil
This is an application to assist in the creation and maintenance of the mapping
files used by Castor (http://castor.exolab.org).
It has been brought (mostly) into compliance with Castor version 0.9.
Note any field names with "[multi]" in them expect space-delimited input to set multiple
values.
I am no longer associated with the Castor project, and provide Oil
as a convenience to the community. The code has been donated to those in charge of
Castor - any issues should be addressed to them. CastorOil.jar was last assembled
3/6/2001, user beware, this code is no longer supported.
CURRENT FEATURES
- Reads database and creates Castor mapping properties.
- Writes mapping.xml from Castor mapping properties.
- Reads mapping.xml and creates Castor mapping properties.
- Writes java source for each element in mapping.
SHORTCOMINGS & FUTURE PLANS
- Need to implement Containers (add org.exolab.castor.tools.oil.tablemodel.Container).
- Plan to add ability to edit tree/mapping (add & remove nodes).
- Plan to add additional data points to facilitate better javasource generation.
- Plan to add ability to generate database creation sql script.
OTHER ISSUES
- This project was started using VisualCafe. Though I've tried to eliminate
them, some vestiges of VCafe may remain.
- Originally designed with the 0.8.8 mapping dtd, how do Relations (and
relationships in general) now get mapped?
- Basing some of the work off examples, I had to copy the ExampleFileFilter
from the JFC demo and rename it ExtensionFileFilter. Not sure of the copyright issues.
Get it here, the package goes inside org.exolab.castor.tools
(org.exolab.castor.tools.oil).