-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Tool for: DDL -> Java or .hbm.xml ?
PostPosted: Fri Oct 15, 2004 9:50 am 
Beginner
Beginner

Joined: Wed Dec 03, 2003 10:59 am
Posts: 47
Hello,

I'm aware of some Hibernate tools, but I'm not sure if there is a tool that will take a
file with DDL statements (i.e. create table XXX ...... ) and convert that to .hbm.xml or .java file. Is there such a tool?

I know there is something that can connect to a DB and generate .hbm.xml files for all/selected tables in DB, but I'm hoping to find a simple command-line, non-interactive tool that can take a file with DDL as input and output either a .java file or the .hbm.xml mapping file.

Perl, Python, Java, Shell, Ruby, anything works :)

Thanks,
Otis


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2004 4:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why not just apply the DDL to the database (via a simple ant sql task) and then run middlgen on it ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.