Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateDaoSupport.CreateHibernateTemplate Method

Create a HibernateTemplate for the given ISessionFactory.

[Visual Basic]
Protected Overridable Sub CreateHibernateTemplate( _
   ByVal sessionFactory As ISessionFactory _
)
[C#]
protected virtual HibernateTemplate CreateHibernateTemplate(
   ISessionFactory sessionFactory
);

Return Value

The new HibernateTemplate instance

Remarks

Only invoked if populating the DAO with a ISessionFactory reference!

Can be overridden in subclasses to provide a HibernateTemplate instance with different configuration, or a custom HibernateTemplate subclass.

See Also

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