[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-669) String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge
Brian Langel (JIRA)
noreply at atlassian.com
Wed Jan 19 11:12:05 EST 2011
String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge
------------------------------------------------------------------------------------------------------------------------------------
Key: HSEARCH-669
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-669
Project: Hibernate Search
Issue Type: Bug
Affects Versions: 3.3.0.Final
Environment: Tested against 3.3.0.Final, database agnostic.
Reporter: Brian Langel
Attachments: string2fieldbridgeadapterfailure.tar
See attached source code (maven project. 'mvn test' will run the test case).
String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge (line 598 in DocumentBuilderIndexedEntity checks if the found FieldBridge is assignable to StringBridge, which for any adapted StringBridge is false since the String2FieldBridgeAdaptor does not implement StringBridge).
>From attached test case:
org.hibernate.search.SearchException: FieldBridge class org.hibernate.search.bridge.String2FieldBridgeAdaptordoes not have a objectToString method: field value in DomainObject
at org.hibernate.search.engine.DocumentBuilderIndexedEntity.objectToString(DocumentBuilderIndexedEntity.java:601)
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.buildSearchTerm(ConnectedMultiFieldsTermQueryBuilder.java:133)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list