-->
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: How to change the name of import.sql file in SchemaExport
PostPosted: Fri Feb 05, 2010 2:44 pm 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:55 pm
Posts: 37
Hi

using Hibernate 3.3.2, is it possible to specify the name of the import.sql in the some settings like, the session factory bean (using Spring):

Code:
<property name="hibernateProperties">
   <value>
        hibernate.hbm2ddl.auto=create
   hibernate.dialect=org.hsqldb.jdbcDriver
   hibernate.show_sql=true
   </value>
</property>


Or any other mechanism OTHER than the command line for SchemaExport?

Thanks

Benoit


Top
 Profile  
 
 Post subject: Re: How to change the name of import.sql file in SchemaExport
PostPosted: Mon Feb 08, 2010 5:40 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
With Hibernate-Tools https://www.hibernate.org/255.html
you have different possibilities to create your schema on database.
One of the possibilities is using ANT:

Code:
<hibernatetool destdir="${basedir}">
              <classpath path="${project.class.path}"/>
              <jpaconfiguration persistenceunit="bclayer"/><!-- Uses META-INF/persistence.xml -->
               <hbm2ddl
                   drop="true"
                   create="true"
                   export="true"
                   outputfilename="bootstrap-ddl.sql"
                   delimiter=";"
                   format="true"/>
           </hibernatetool>


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.