When I just Create the Factory, It seems to do a lot of work (in the log4net console) when it start without me asking him to do anything. could it be that those are just tests he does for himself?
+1
A:
Creating a sessionFactory is an expensive operation. Typically you only create one sessionFactory at the start of your application and store a cached version for creating your sessions.
Aaron Fischer
2009-11-30 15:10:30
yes yea but is it o.k that he tries a crud query on eached mapped entity when session factory created ?
Chen Kinnrot
2009-11-30 16:16:51
It's not making CRUD calls, its building the Static SQL statements for CRUD operations.
Aaron Fischer
2009-12-01 15:20:26