[hibernate-commits] Hibernate SVN: r15651 - in search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test: embedded and 1 other directories.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Dec 3 08:56:17 EST 2008


Author: jcosta at redhat.com
Date: 2008-12-03 08:56:17 -0500 (Wed, 03 Dec 2008)
New Revision: 15651

Modified:
   search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/bridge/Cloud.java
   search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/embedded/Product.java
   search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java
Log:
HSEARCH-317 - Workaround for JBPAPP-1071

Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/bridge/Cloud.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/bridge/Cloud.java	2008-12-03 13:55:38 UTC (rev 15650)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/bridge/Cloud.java	2008-12-03 13:56:17 UTC (rev 15651)
@@ -2,6 +2,8 @@
 package org.hibernate.search.test.bridge;
 
 import java.util.Date;
+
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
@@ -94,6 +96,7 @@
     }
 
     @Field(index=Index.UN_TOKENIZED, store=Store.YES)
+    @Column(name="int1x")
     public Integer getInt1() {
         return int1;
     }
@@ -103,6 +106,7 @@
     }
 
     @Field(index=Index.UN_TOKENIZED, store=Store.YES)
+    @Column(name="int2x")
     public int getInt2() {
         return int2;
     }
@@ -157,6 +161,7 @@
     }
 
     @Field(index=Index.UN_TOKENIZED, store=Store.YES)
+    @Column(name="xdate")
     public Date getDate() {
         return date;
     }

Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/embedded/Product.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/embedded/Product.java	2008-12-03 13:55:38 UTC (rev 15650)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/embedded/Product.java	2008-12-03 13:56:17 UTC (rev 15651)
@@ -33,7 +33,7 @@
 	@IndexedEmbedded
 	private Set<Author> authors = new HashSet<Author>();
 	@ManyToMany(cascade = CascadeType.REMOVE) //just to make the test easier, cascade doesn't really make any business sense
-	@MapKey(columns = @Column(name="CUST_NAME") )
+	@MapKey(columns = @Column(name="CUST_NAME", nullable=false) )
 	@IndexedEmbedded
 	private Map<String, Order> orders = new HashMap<String, Order>();
 

Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java	2008-12-03 13:55:38 UTC (rev 15650)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java	2008-12-03 13:56:17 UTC (rev 15651)
@@ -92,7 +92,7 @@
 				suspect.setSuspectCharge( "thief liar " );
 			}
 			else {
-				suspect.setSuspectCharge( " It's 1875 in London. The police have captured career criminal Montmorency. In the process he has been grievously wounded and it is up to a young surgeon to treat his wounds. During his recovery Montmorency learns of the city's new sewer system and sees in it the perfect underground highway for his thievery.  Washington Post columnist John Kelly recommends this title for middle schoolers, especially to be read aloud.");
+				suspect.setSuspectCharge( " It's 1875 in London. The police have captured career criminal Montmorency. In the process he has been grievously wounded and it is up to a young surgeon to treat his wounds. During his recovery Montmorency learns of the city's new sewer system.");
 			}
 			s.persist( suspect );
 		}




More information about the hibernate-commits mailing list