-->
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.  [ 4 posts ] 
Author Message
 Post subject: SchemaUpdateTask
PostPosted: Thu Jun 10, 2004 4:40 pm 
Newbie

Joined: Thu Jun 10, 2004 4:33 pm
Posts: 2
When using SchemaUpdate :

How can we output the result script to file ?
ex:
<schemaupdate
properties="${src}/hibernate.properties"
quiet="no"
text="yes"
output="${database.scripts}/update-schema.sql">
<fileset dir="${src}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaupdate>
This syntax doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 11, 2004 1:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Just try the path without using a env variable, eg, /update-schema.sql see if that works for you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 11, 2004 10:24 am 
Newbie

Joined: Thu Jun 10, 2004 4:33 pm
Posts: 2
david wrote:
Just try the path without using a env variable, eg, /update-schema.sql see if that works for you.



Thanks David

I tried an explicit path but the "output" attribute doesn't exist, is there an other attribute that to the job.

The SchemaUpdateTask seems to have only the "quiet" and "text" options. I tried combinations of those attributes, I get the db statements print in the stdout and/or directly executed in the database, but I did not find the way to get the DB statements in a file .

returned error message:
file:myfile.xml:45:
The <schemaupdate> task doesn't support the "output" attribute. at line 45

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 12, 2004 1:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Yes your right I was thinking of hbm2ddl.
You can start by redirect standard output into a file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.