-->
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: hbm2ddl anttask: how to supress generated sql on stdout?
PostPosted: Fri Jun 08, 2007 2:13 pm 
Newbie

Joined: Wed Nov 26, 2003 10:07 am
Posts: 3
Hi,

I use the hibernatetool ant task to generate sql create scripts (via the maven antrun plugin) .
No problems with that, the desired scripts are nicely written into the destination directory. But I am unable to find an option that supresses the output of the generated sql scripts to the buildoutput. Since my datamodel is quite big this pollutes our buildfile with some undesired 2000 lines.

I have configured the logging by log4j properly, since I am able to switch from 'debug' to 'error' loglevel. But the script keep on being written to stdout on with 'error' level.

setting hibernate.show_sql=false on my hibernate.properties had no effect neither.

I saw in the docs of the now deprecated <schemaexport> that it had an attribute quiet="yes" that seems to fit my purpose - though I didn't validate this. But there seems to be no such option on the <hibernatetool><hbm2ddl> task.

Does anybody have any glue how to achieve this?


( We use Hibernate-tools version:3.2.0.beta9a )


Kay


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 09, 2007 3:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
console="false"

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 2:08 pm 
Newbie

Joined: Wed Nov 26, 2003 10:07 am
Posts: 3
It did the job. An undocumented feature or have I been blind?

Thanks a lot for your fast reaction.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 5:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
he, yeah seems that one is missed in the docs.

Be a pal and submit it to jira so it will be fixed when I get around to it, thanks.

_________________
Max
Don't forget to rate


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.