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: VIWING the generated query
PostPosted: Fri Jun 22, 2007 9:27 am 
Newbie

Joined: Fri Jun 15, 2007 1:15 am
Posts: 5
My hql doesn't work how i expected.How could i see the sql query genereted by Nhibernate behing hql query.I 'm in a dot net console app.
Thanks


Top
 Profile  
 
 Post subject: Re: VIWING the generated query
PostPosted: Fri Jun 22, 2007 2:21 pm 
Regular
Regular

Joined: Fri Jan 27, 2006 2:32 pm
Posts: 102
Location: California, USA
pascanua wrote:
My hql doesn't work how i expected.How could i see the sql query genereted by Nhibernate behing hql query.I 'm in a dot net console app.
Thanks


When you configurion NHib, set the "show_sql" flag:

I do my config in code, you might have done it in Xml...

Code:
_config = new NHibernate.Cfg.Configuration();
_config.Properties.Add("hibernate.show_sql", "true");


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.