-->
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: show-sql - how to?
PostPosted: Wed Jan 25, 2006 3:42 am 
Newbie

Joined: Mon Oct 10, 2005 1:55 pm
Posts: 12
Dear all
i want to see the sql's that Nhibernate generates.
i know that for thes reason i should use the show sql tag - but what is the exact syntax??? where should i put this tag?
(in the mapping file? in the cfg file??? )
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 5:13 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Either enable NHibernate.SQL logger (set it to level ALL or DEBUG), or set hibernate.show_sql property to true. In the first case SQL output will go through the log, in the second case it will go directly to the console output.


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.