I'd love to see this code. Can you make it available?
-Brian
Erwin Bolwidt wrote:
>>Brian wrote:
>>b> Ideally, I wouldn't hardcode the creates into my code but would use the
>>b>table names specified in the mapping files. Is there a way to get to
>>b>these names so I don't have to change mapping info in two places?
>>
>>
>
>
>On Wed, 2002-07-10 at 17:24, Bruce Snyder wrote:
>
>
>>Usually, table creation is done either by hand or via an SQL
>>script. Seeing as how you want to create them every time the app is
>>executed and you want to do it via Java, I'd recommend the creation of
>>a separate class to handle all the table creation.
>>
>>
>
>A while ago, I wrote an xslt stylesheet that takes a mapping file as
>input and creates an SQL script as output. It can be found in bugzilla
>at castor.org under Castor JDO.
>
>I turned it into a Java version with more features. It reads one or more
>mapping files. It find the right sql type of foreign keys, creates
>many-tables and indexes were this seems helpful. It is geared towards
>Postgresql at the moment. If the generated sql isn't entirely right, you
>can edit it by hand or, of course, add features to the code.
>
>If this is something people like I'd love to share it, and make it part
>of castor if possible.
>
>Regards,
> Erwin Bolwidt
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>
--
__o
_-\<,_ Brian
(_)/ (_) [EMAIL PROTECTED] x503
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev