Proyecto Fin de Carrera 2011
Classes
Class | Description | |
---|---|---|
![]() | SessionFactory |
Vinculación entre la base de datos, nhibernate y la aplicación
|
![]() | SessionManager |
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.
|
![]() | SessionModule |
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.
|