Hi,
Does the Hibernate "flushes" the Session when we execute a "find" method on Session.
Ours a 3 tier web application and the Hibernate Session are managed by ThreadLocal way .
I am doing a simple "find" on the session and then after getting the result, i am closing the session -- but when i look at the log file generated , Hibernate prints out this DEBUG information.
-------------------------------------------------------
2004-04-12 13:40:05,565 DEBUG [net.sf.hibernate.hql.QueryTranslator] compiling query
2004-04-12 13:40:05,567 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2004-04-12 13:40:05,569 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
------------------------------------------------------------
After this it prints out a lot of these in 100's kind of statement
2004-04-12 13:40:05,706 DEBUG [net.sf.hibernate.impl.SessionImpl] Collection found:<<class name and other stuff>>
--------------------------------------------------------------
It also prints out this info before printing the HQL
2004-04-12 13:40:05,740 DEBUG [net.sf.hibernate.impl.SessionImpl] Dont need to execute flush
--------------------------------------------------------------------
So the question is does the Hibernate automatically flushes the "session" while executing "find" upon it and if yes how i can turn the "flush" off.
Your help will be highly appreciated.
Thanks
|