Good idea keith.  I will help you.

I solved a similar issue by writing some xslt stylesheets that transform
the standardized (unflexible/customizable, but usable) XML Schema output
of our embarcadero e/r studio database modeling tool (which drives our
organization) into castor mapping files and then into the associated
compliant "castorized" Java Beans.  Then a small piece of java code
using Xalan to transform it all into castor compliant JDO mapping xml
files and also another ugly stylesheet to generate the *.javas from
those files.

But I just did this while I am waiting on Peter Kasson sp? To finish the
next release of castor oil which is an open source project he recently
took over to automatically introspect some database tables and do all of
this I just said for you.

Maybe we should see what his next castor oil beta release does first -
supposed to come out this week-right peter?

Brandon Acuff
mobile: 630-664-7737

-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 10:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Code for auto-generating CUSTOM castor mapping
files


You may be able to just extend org.exolab.castor.tools.MappingTool 

It already uses reflection to automatically create a basic Mapping file.
You just need to add the default <sql> tags with table names.

--Keith

> Daniel Shriver wrote:
> 
> Ok,
>    I've been looking around at what's available for "improved data
> serialization" and the toolsets with robust communities (Castor,
> Hibernate, OJB) all seem to have this "mapping issue" (one needs to
> write/update mapping files in lockstep with coding).
> 
> As previously mentioned I want to try and develop a general
> "auto-mapper" but (as mentioned on this forum) the problem is rather
> ugly.  I am curious if there are people interested in spawning off a
> new open-source project on this (I'll be working on one myself, and
> hopefully I'll get permission to make the code open source).
> Currently I'm thinking of using Java's Reflection API to figure out
> the necessary fields to save/load...

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to