Hotware / Hibernate-Search-GenericJPA

Hibernate-Search with the JPA provider you want
http://hotware.github.io/Hibernate-Search-GenericJPA/
GNU Lesser General Public License v2.1
5 stars 3 forks source link

should we drop the triggers at startup in order to recreate them? #79

Closed s4ke closed 9 years ago

s4ke commented 9 years ago

this will be a problem for supporting multiple applications in the database.

s4ke commented 9 years ago

this behaviour should be configurable by properties, something along the lines of:

org.hibernate.search.genericjpa.searchfactory.triggers.createstrategy=create/drop-create

s4ke commented 9 years ago

create can be done by trying to create everything and ignoring the exeptions at startup. this should be logged with at least INFO level so users can jump in and remove the old triggers if they upgraded and the behaviour of the Triggersource has changed.