[wildfly-dev] Enabling Hibernate Search to all Hibernate/JPA users
Sanne Grinovero
sanne at hibernate.org
Fri Aug 1 18:49:43 EDT 2014
On 1 August 2014 14:34, Brian Stansberry <brian.stansberry at redhat.com> wrote:
> On 8/1/14, 5:58 AM, Sanne Grinovero wrote:
>> Currently users wishing for Search super-powers in their Hibernate
>> applications need to enable the module explicitly.
>>
>> This seems to be rather annoying, and we have questions like this one:
>> - https://community.jboss.org/thread/243346
>>
>> I see no reasons to not enable it by default, following the same
>> activation rules of other Hibernate dependencies: it's very
>> conservative about not auto-enabling itself when not needed.
>>
>> May I open such a feature request? Happy to try the patching myself.
>>
>
> Would there be some configuration mechanism for users to turn this off?
Yes, just set "hibernate.search.autoregister_listeners" to "false".
This property is read as any other Hibernate / JPA configuration
properties, so could be set globally at boot of the JVM or in the
scope of a specific Hibernate instance.
But that's just an extreme emergency button, as it won't trigger if
entities are not marked with Search specific annotations.
-- Sanne
>
>
> --
> Brian Stansberry
> Senior Principal Software Engineer
> JBoss by Red Hat
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
More information about the wildfly-dev
mailing list