SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-643
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Stefan Lecho
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Compass

Spring configuration for indexQueryProvider

Created: 26/May/08 06:06 AM   Updated: 07/Oct/08 07:38 PM
Component/s: Compass::Spring
Affects Version/s: None
Fix Version/s: 2.1.0 M1


 Description  « Hide
Add the abitilty to configure the indexQueryProvider property of HiberanteGpsDevice within a Spring-based configuration file.

Example:
<bean id="" class="...HibernateGpsDevice">
<property name="indexProviders">
<map>
<entry key="...PersonImpl">
<value>from PersonImpl p where p.type = 0</value>
</entry>
</map>
</property>
</bean>

Link to the forum thread: http://forum.compass-project.org/thread.jspa?messageID=295083



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 26/May/08 07:48 AM
Added another class called HibernateEntityIndexInfo which can be passed to a new setter method called: setindexEntityInfo(HibernateEntityIndexInfo indexInfo).

Marek added a comment - 04/Aug/08 04:23 PM
I think the method name should be setIndexEntityInfo, though spring allows it to be called the way it is when setting the property. Also, wondering if you meant to remove the setIndexProviders method, as this would be the only mechanism for setting multiple providers on the device. The way it is now, you could only configure one in spring.

Shay Banon added a comment - 06/Aug/08 11:57 AM
Do you mean that you can only set it with Spring and not when using something else? What is that something else that you refer to? In what way do you configure Compass?

Shay Banon added a comment - 07/Oct/08 07:38 PM
ok, now I think I understood what you meant, thanks to CMP-733. I fixed it there.