I don't know of any tool that would do this automagically.   It might be
something you could start a project with, but after that I'm not sure how
useful such a tool would be.

Personally, I prefer using xdoclet to produce Hibernate mappings, and then
use the Hibernate mappings to produce the DDL (which it does rather nicely).
I found generating Java from Hibernate mappings to be useful for the initial
development.  Given that, it might make sense to generate schema using
xdoclet.  Just a thought.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Qin Ding
> Sent: Monday, January 05, 2004 5:41 PM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] Questions
> 
> 
> The company has built a very large set of xml schema (w3c 
> complied).  I wonder if I can use the schema to generate a 
> java, mapping file, ddl for a RDBMS.
> 
> If I can generate DDL based on the schema and build a 
> database using the DDL, I can generate java and hibernate 
> mapping file based on the database schema using Ant.  Is this 
> correct? Or, can I use xml schema to generate java and mapping file?
> 
> Can someone adverse me on how to approach this?  Is there a 
> tool that I can use to generate DDL using xml schema?  
> Appreciate your help and advise.
> 
> Qin
> 
> 
> --------------------------------------------------------------
> --------------------------
> 
> This is a PRIVATE message. If you are not the intended 
> recipient, please delete without copying and kindly advise us 
> by e-mail of the mistake in delivery. NOTE: Regardless of 
> content, this e-mail shall not operate to bind CSC to any 
> order or other contract unless pursuant to explicit written 
> agreement or government initiative expressly permitting the 
> use of e-mail for such purpose.
> --------------------------------------------------------------
> --------------------------
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System 
> offering advanced branching capabilities and atomic changes 
> on 50+ platforms. Free Eval! 
> http://www.perforce.com/perforce/loadprog.html
> 
> _______________________________________________
> hibernate-devel mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to