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
|