-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to Log the Nhibernate generated HQL Query?
PostPosted: Sat Sep 22, 2007 5:00 pm 
Newbie

Joined: Mon Jul 16, 2007 9:35 am
Posts: 17
Hi all,

Whenever we call Nhibernate methods SAVE() or UPDATE(), it will return the RESULT as IList back to us. Internally NHibernate generates HQL query for processing.

I need to log the query generated by the NHibernate.
How to log the generated query?

Is there any properites or method to do so.Let me know.

Thanks for all your time.
Cheers
Sudhagar.S


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 22, 2007 7:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
The reference documentation comes to the rescue again:
http://www.hibernate.org/hib_docs/nhibe ... on-logging

_________________
Karl Chu


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 9:13 am 
Newbie

Joined: Mon Jul 16, 2007 9:35 am
Posts: 17
Thanks. I was able to identity the synatx "nhibernate.show_sql", but the real problem was I did not enable the LOGGING for NHibernate tag. So I could not notice the logging part.

Any way I am much thankful for your time.

Cheers
Sudhagar.S


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