0 Replies Latest reply on Apr 22, 2008 6:03 PM by Bram Biesbrouck

    Hibernate Search and @PostPersist clash ?

    Bram Biesbrouck Newbie

      Hi all,

      I'm using Hibernate Search, and am facing problems when used together with @PostPersist, @PostUpdate, etc annotations.

      When I activate the event-listeners of Hibernate Search in persistence.xml, the @Post... annotated method don't get called anymore. It's like all other event-listeners in my application are overridden by the ones of Hibernate Search.

      If I remove them from the persistence.xml file, the methods get called properly, but all search-operations throw exceptions saying I need to enable the listeners. Setting indexing to manual doesn't seem to help.

      Any idea how to solve this?