-->
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.  [ 1 post ] 
Author Message
 Post subject: Is it possible to create a database with <schemaexport>
PostPosted: Tue Nov 11, 2003 12:50 am 
Beginner
Beginner

Joined: Sun Oct 05, 2003 9:07 am
Posts: 47
I currently create a database using a SQL script and Ant's <sql> task. Is it possible to use Hibernate's <schemaexport> task to create a database (not just its tables)? Here's the sample code I found (works to create tables):

Code:

<target name="schemaexport">
       <taskdef name="schemaexport"
           classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
           classpathref="classpath"/>
     
       <schemaexport
           properties="${classes.dir}\hibernate.properties"
           quiet="no"
           text="no"
           drop="no"
           delimiter=";"
           output="{table.dir}/out.sql">
           <fileset dir="src">
               <include name="**/*.hbm.xml"/>
           </fileset>
       </schemaexport>
   </target>



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

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.