Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateDaoSupport Class

Convenient super class for Hibernate data access objects.

For a list of all members of this type, see HibernateDaoSupport Members .


[Visual Basic]
Public MustInherit Class HibernateDaoSupport
    Inherits DaoSupport
public abstract class HibernateDaoSupport : DaoSupport

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Requires a SessionFactory to be set, providing a HibernateTemplate based on it to subclasses. Can alternatively be initialized directly with a HibernateTemplate, to reuse the latter's settings such as the SessionFactory, exception translator, flush mode, etc

This base call is mainly intended for HibernateTemplate usage.

This class will create its own HibernateTemplate if only a SessionFactory is passed in. The "allowCreate" flag on that HibernateTemplate will be "true" by default. A custom HibernateTemplate instance can be used through overriding



Namespace: Spring.Data.NHibernate.Generic.Support

Assembly: Spring.Data.NHibernate21 (in Spring.Data.NHibernate21.dll)

See Also

HibernateDaoSupport Members | Spring.Data.NHibernate.Generic.Support Namespace