I'm currently using: Spring 3.0.2 Hibernate Search 3.2.0 Hibernate 3.5.3
When running the massindexer I'm unable to Lazily load my collections. I get the following error,
[Hibernate Search: collectionsloader-x] ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: no session or session was closed
I'm injecting my EntityManager using Spring with @PersistenceContext and using Spring to manage my transactions.
When running in debug mode, the session == null in the method private final boolean isConnectedToSession(); of AbstractPersistentCollection
What am I doing wrong, or what do I need to change so I can lazily load during massindexing.
Thanks
|