-->
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: SchemaExport
PostPosted: Wed Mar 09, 2005 6:25 pm 
Newbie

Joined: Wed Mar 09, 2005 6:17 pm
Posts: 1
Greeting,

I use schemaexport tool within ant, is there a option for just producing ddl file without connecting to database and creating the tables etc?

Thanks

The following is what I used within a ant target

<schemaexport
properties="${build.conf}/hibernate.properties"
quiet="no"
text="no"
drop="no"
output="schema-horizon.sql">

<fileset dir="${src.java}">
<include name="**/horizondb/*.hbm.xml"/>
</fileset>
</schemaexport>


Top
 Profile  
 
 Post subject: Re: SchemaExport
PostPosted: Thu Mar 10, 2005 10:43 am 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:29 am
Posts: 26
Richard Han wrote:
Greeting,

I use schemaexport tool within ant, is there a option for just producing ddl file without connecting to database and creating the tables etc?

Thanks

The following is what I used within a ant target

<schemaexport
properties="${build.conf}/hibernate.properties"
quiet="no"
text="no"
drop="no"
output="schema-horizon.sql">

<fileset dir="${src.java}">
<include name="**/horizondb/*.hbm.xml"/>
</fileset>
</schemaexport>


I think you just change the text="no" to text="yes" and then all you'll get is the schema-horizon.sql.

-Jeff


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.