on
on
0
<P>This assembly provides integration of NHibernate 2.0 with Spring concepts.</P> <P>Contains SessionFactory helper classes, a template plus callback for Hibernate access, and an implementation of Spring's transaction SPI for local Hibernate transactions.</P>
The Spring.Data.NHibernate.Northwind Quick Start application as well as the reference documentation chapter on <A href="http://www.springframework.net/doc-latest/reference/html/orm.htmlhttp://www.springframework.net/doc-latest/reference/html/orm.html">NHibernate integration</A> are good places to get started.
<P>The Spring Framework provides integration with <SPAN class=emphasis><EM>NHibernate </EM></SPAN>in terms of resource management, DAO implementation support, and transaction strategies. For example for NHibernate, there is first-class support with lots of IoC convenience features, addressing many typical NHibernate integration issues. All of these support packages for O/R (Object Relational) mappers comply with Spring's generic transaction and DAO exception hierarchies. There are usually two integration styles: either using Spring's DAO 'templates' or coding DAOs against the 'plain' NHibernate APIs. In both cases, DAOs can be configured through Dependency Injection and participate in Spring's resource and transaction management.</P> <P>You can use Spring's support for NHibernate without needing to use Spring IoC or transaction management functionality. The NHibernate support classes can be used in typical 3rd party library style. However, usage inside a Spring IoC container does provide additional benefits in terms of ease of configuration and deployment; as such, most examples in this section show configuration inside a Spring containe</P>
Contains HibernateTemplate
Generic implementation of HibernateTemplate
Generic implementation of base DAO class
Provides Open Session In View module, base DAO class for HibernateTemplate usage, and SessionScope utilty class