Author: navssurtani
Date: 2008-08-15 02:15:40 -0400 (Fri, 15 Aug 2008)
New Revision: 15086
Modified:
search/trunk/src/java/org/hibernate/search/annotations/ProvidedId.java
search/trunk/src/java/org/hibernate/search/engine/DocumentBuilder.java
Log:
Changed bridgeImpl() in @ProvidedId to bridge()
Modified: search/trunk/src/java/org/hibernate/search/annotations/ProvidedId.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/annotations/ProvidedId.java 2008-08-14
21:11:28 UTC (rev 15085)
+++ search/trunk/src/java/org/hibernate/search/annotations/ProvidedId.java 2008-08-15
06:15:40 UTC (rev 15086)
@@ -26,5 +26,5 @@
String name() default "providedId";
- ClassBridge bridgeImpl() default @ClassBridge(impl =
org.hibernate.search.bridge.builtin.StringBridge.class);
+ ClassBridge bridge() default @ClassBridge(impl =
org.hibernate.search.bridge.builtin.StringBridge.class);
}
Modified: search/trunk/src/java/org/hibernate/search/engine/DocumentBuilder.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/engine/DocumentBuilder.java 2008-08-14
21:11:28 UTC (rev 15085)
+++ search/trunk/src/java/org/hibernate/search/engine/DocumentBuilder.java 2008-08-15
06:15:40 UTC (rev 15086)
@@ -118,7 +118,7 @@
ProvidedId provided = clazz.getAnnotation(
org.hibernate.search.annotations.ProvidedId.class );
if ( provided == null ) throw new SearchException( "No document id in: " +
clazz.getName() );
- idBridge = BridgeFactory.extractTwoWayType(provided.bridgeImpl());
+ idBridge = BridgeFactory.extractTwoWayType(provided.bridge());
idKeywordName = provided.name();
}
//if composite id, use of (a, b) in ((1,2)TwoWayString2FieldBridgeAdaptor, (3,4)) fails
on most database
Show replies by date