Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.EntityInterceptor Property

Set a NHibernate entity interceptor that allows to inspect and change property values before writing to and reading from the database. Will get applied to any new Session created by this factory.

Such an interceptor can either be set at the SessionFactory level, i.e. on LocalSessionFactoryObject, or at the Session level, i.e. on HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager to avoid repeated configuration and guarantee consistent behavior in transactions.

[Visual Basic]
Public WriteOnly Property EntityInterceptor() As IInterceptor
   Public Set
   End Set
End Property
public IInterceptor EntityInterceptor { public set; }

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace | EntityInterceptor | EntityInterceptor