Proyecto Fin de Carrera 2011
 

Classes

  ClassDescription
Public classSessionFactory
Vinculación entre la base de datos, nhibernate y la aplicación
Public classSessionManager
Handles creation and management of sessions and transactions. It is a singleton because building the initial session factory is very expensive. Inspiration for this class came from Chapter 8 of Hibernate in Action by Bauer and King. Although it is a sealed singleton you can use TypeMock (http://www.typemock.com) for more flexible testing.
Public classSessionModule
Implements the Open-Session-In-View pattern using SessionManager. Assumes that each HTTP request is given a single transaction for the entire page-lifecycle. Inspiration for this class came from Ed Courtenay at http://sourceforge.net/forum/message.php?msg_id=2847509.