-->
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.  [ 1 post ] 
Author Message
 Post subject: Empty show_sql output?
PostPosted: Fri Jan 16, 2009 3:14 am 
Newbie

Joined: Thu Dec 13, 2007 3:13 pm
Posts: 9
Hi there,

i'm currently using NHibernate 2.1 in conjunction with NHibernate.Linq, NHibernate.Spatial and some custom types. everything works great, but i observed a really strange behavior.
i turned show_sql to true to get the sql statements nhibernate creates.
this delivers some output to stdout. e.g.

NHibernate: SELECT this_.ID as ID31_1_, this_.Timestamp as Timestamp31_1_, this_.Geography as Geography31_1_, this_.Course as Course31_1_, this_.EventCode as EventCode31_1_, this_.Mileage as Mileage31_1_, this_.RawData as RawData31_1_, this_.Speed as Speed31_1_, this_.Sequence as Sequence31_1_, this_.Validity as Validity31_1_, t2_.LGeography as LGeog8_28_0_ FROM Table1 this_ inner join Table2 t2_ on this_.Table2ID=t_.ID

then i modifiy some of the entities , hand them over to the session for SaveOrUpdate() and Flush() the session.
Now the output from show_sql is empty. i just get lines with :

NHibernate:
NHibernate:
NHibernate:
...

observing the SQL 2008 database with a profiler shows me that update statements get executed.
now there is one question...why does nhibernate hide the statements it generates?
any idea? some workaround? thanks

jkersch


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.