I need to add search to an existing application which has several modules. The older one was recently refactored from CMP to JPA using the orm/persistence files, while one of the new modules is Spring-based and contains a JPA configuration via code. They operate independently though through the same server pool.
Thus far I am testing in the older module w/o issue. But there are duplicate entity classes between the modules.
If I were to mark the duplicate/spring classes as indexed with the same field annotations, as I understand things, Hibernate would spin up TWO instances of the Lucene lib which means duplicate reader/writers, correct?
If so, what can I do short of refactoring code to not have duplicate entities?