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 .

System.Object
   DaoSupport
      HibernateDaoSupport

[Visual Basic]
Public MustInherit Class HibernateDaoSupport
    Inherits DaoSupport
[C#]
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.

Remarks

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

CreateHibernateTemplate
.

Requirements

Namespace: Spring.Data.NHibernate.Support

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

See Also

HibernateDaoSupport Members | Spring.Data.NHibernate.Support Namespace