Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] NHibernate Search usage

Jonathan Ariel

2008-02-09

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi!
I've been messing around with NHibernate.Search.
So I couldn't save an entity because I'm getting a NullReferenceException in the SearchInterceptor, on the PostFlush method. When debugging I saw that the session is null in there.
I'm doing to following in order to add the interceptor to the session factory:

            ISessionFactory sessionFactory =
                new Configuration().Configure().SetInterceptor(new SearchInterceptor()).BuildSessionFactory();

I'm not sure if it's the way we're supposed to use it.

Thanks!!

Jonathan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.