-->
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: SchemaUpdateTask question.
PostPosted: Tue Jan 30, 2007 6:16 am 
Newbie

Joined: Tue Nov 28, 2006 3:52 am
Posts: 5
Hi there.

I developed an ant task with SchemaUpdateTask, and it works.

But I didn't found how get the output (alter table....) to a file rather then the console. How can I do?

Thanks

Nicola Grippaldi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 11:49 am 
Beginner
Beginner

Joined: Mon Jan 22, 2007 1:16 pm
Posts: 21
i don't think you can output a file with SchemaUpdate, but you can with SchemaExport.

this is from the online documentation:
http://www.hibernate.org/hib_docs/v3/re ... guide-s1-4

20.1.4. Using Ant

You can call SchemaExport from your Ant build script:

<target name="schemaexport">
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="class.path"/>

<schemaexport
properties="hibernate.properties"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="schema-export.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.  [ 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.