Hibernate version: 1.2.0 GA
Name and version of the database you are using: Microsoft SQL Server 2005 Standard Edition SP2
I've just read the NHibernate docs (
http://www.hibernate.org/hib_docs/nhibe ... tions.html) which states:
6.5. Lazy Initialization
"...Usually, the application calls NHibernateUtil.Initialize() for each collection that will be needed in the web tier (this call must occur before the session is closed) or retrieves the collection eagerly using a NHibernate query with a FETCH clause..."
I actually don't understand the following statement: "this call must occur before the session is closed".
I think I need a clearer explanation of
what the consequences are of calling it when no session exists. I'm questioning this since I'm practicing with it in my current (Windows Forms) application and it works just fine so far. CMIIW.
Thanks before!