-->
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: Just gene the SQL script without connecting the database
PostPosted: Fri Nov 27, 2009 2:58 pm 
Newbie

Joined: Fri Nov 27, 2009 2:42 pm
Posts: 2
Hello,

I'de like to generate the structure script of my database from HBM without updating/creating and neither connecting to the database.

I run this : org.hibernate.tool.hbm2ddl.SchemaExport --config=hibernate.cfg.xml --properties=/.../.../hibernate.properties --output=/.../struct.ddl

this deletes and recreate the tables of my database according to the HBML but I just want the script.

What command do have I to run to get only the script ?


Top
 Profile  
 
 Post subject: Re: Just gene the SQL script without connecting the database
PostPosted: Fri Nov 27, 2009 3:06 pm 
Newbie

Joined: Fri Nov 27, 2009 2:42 pm
Posts: 2
I answer to my own question : --text must be added to the command line.

(I think it will be better for this option to be the default one).


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.