Author: stliu
Date: 2010-01-04 05:03:22 -0500 (Mon, 04 Jan 2010)
New Revision: 18383
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/JMSMasterTest.java
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/TShirt.java
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/slave/TShirt.java
Log:
JBPAPP-3321 keywords 'size' on oracle cause two H-search test case fails
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/JMSMasterTest.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/JMSMasterTest.java 2010-01-03
19:59:01 UTC (rev 18382)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/JMSMasterTest.java 2010-01-04
10:03:22 UTC (rev 18383)
@@ -33,7 +33,7 @@
import org.hibernate.search.test.SearchTestCase;
/**
- * Tests that the Master node in a JMS cluster can propertly process messages placed
onto the queue.
+ * Tests that the Master node in a JMS cluster can properly process messages placed onto
the queue.
*
* @author Emmanuel Bernard
* @author Hardy Ferentschik
@@ -135,18 +135,18 @@
}
/**
- * Create a test object without trigggering indexing. Use SQL directly.
+ * Create a test object without triggering indexing. Use SQL directly.
*
* @return a <code>TShirt</code> test object.
*
- * @throws SQLException in case the inset fails.
+ * @throws SQLException in case the insert fails.
*/
private TShirt createObjectWithSQL() throws SQLException {
Session s = openSession();
s.getTransaction().begin();
Statement statement = s.connection().createStatement();
statement.executeUpdate(
- "insert into TShirt_Master(id, logo, size) values( '1', 'JBoss
balls', 'large')"
+ "insert into TShirt_Master(id, logo, size_) values( '1', 'JBoss
balls', 'large')"
);
statement.close();
TShirt ts = ( TShirt ) s.get( TShirt.class, 1 );
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/TShirt.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/TShirt.java 2010-01-03
19:59:01 UTC (rev 18382)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/master/TShirt.java 2010-01-04
10:03:22 UTC (rev 18383)
@@ -1,6 +1,7 @@
//$Id$
package org.hibernate.search.test.jms.master;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@@ -22,6 +23,7 @@
private int id;
@Field(index= Index.TOKENIZED)
private String logo;
+ @Column(name="size_")
private String size;
public int getId() {
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/slave/TShirt.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/slave/TShirt.java 2010-01-03
19:59:01 UTC (rev 18382)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/jms/slave/TShirt.java 2010-01-04
10:03:22 UTC (rev 18383)
@@ -1,6 +1,7 @@
//$Id$
package org.hibernate.search.test.jms.slave;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
@@ -22,6 +23,7 @@
private int id;
@Field(index= Index.TOKENIZED)
private String logo;
+ @Column(name="size_")
private String size;
public int getId() {