Author: epbernard
Date: 2009-11-19 11:34:07 -0500 (Thu, 19 Nov 2009)
New Revision: 18010
Modified:
search/trunk/src/test/java/org/hibernate/search/test/id/providedId/ProvidedIdPerson.java
Log:
rolling back failure on the ProvidedIdTest. Need to remove the hibernate core use and
simulate what infinispan is doing somehow.
Modified:
search/trunk/src/test/java/org/hibernate/search/test/id/providedId/ProvidedIdPerson.java
===================================================================
---
search/trunk/src/test/java/org/hibernate/search/test/id/providedId/ProvidedIdPerson.java 2009-11-19
08:51:35 UTC (rev 18009)
+++
search/trunk/src/test/java/org/hibernate/search/test/id/providedId/ProvidedIdPerson.java 2009-11-19
16:34:07 UTC (rev 18010)
@@ -29,9 +29,12 @@
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.ProvidedId;
import org.hibernate.search.annotations.Store;
+import org.hibernate.search.annotations.FieldBridge;
+import org.hibernate.search.bridge.builtin.LongBridge;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
import java.io.Serializable;
@@ -39,10 +42,11 @@
* @author Navin Surtani
*/
@Entity
-@ProvidedId
+@ProvidedId(bridge = @FieldBridge(impl = LongBridge.class) )
@Indexed
public class ProvidedIdPerson implements Serializable {
+ @Id
@GeneratedValue
private long id;
Show replies by date