This issue is in relation to
CMP-643. In that issue, Stephan asked for a way to inject custom index queries via Spring in a fashion similar to this:
<bean id="" class="...HibernateGpsDevice">
<property name="indexProviders">
<map>
<entry key="...PersonImpl">
<value>from PersonImpl p where p.type = 0</value>
</entry>
</map>
</property>
</bean>
A new class called HibernateEntityIndexInfo was created to address this issue, but the problem is that you can only inject one one. So if you have multiple types that are indexed, and you want to have one index query provider for each type you are out of luck.
One simple solution would be to change the method:
void setindexEntityInfo(HibernateEntityIndexInfo indexInfo)
in HibernateGpsDevice to this:
void setindexEntityInfo(List<HibernateEntityIndexInfo> indexInfos)
Essentially, just changing the argument of the setter method from a single entity to a collection.
Thanks,
Joe