Hibernate SVN: r15048 - search/trunk/src/test/org/hibernate/search/test/bridge.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2008-08-13 11:28:17 -0400 (Wed, 13 Aug 2008)
New Revision: 15048
Modified:
search/trunk/src/test/org/hibernate/search/test/bridge/BridgeTest.java
search/trunk/src/test/org/hibernate/search/test/bridge/Cloud.java
Log:
JBPAPP-1072 fix name: Oracle does not like date/number fields
Modified: search/trunk/src/test/org/hibernate/search/test/bridge/BridgeTest.java
===================================================================
--- search/trunk/src/test/org/hibernate/search/test/bridge/BridgeTest.java 2008-08-13 15:12:13 UTC (rev 15047)
+++ search/trunk/src/test/org/hibernate/search/test/bridge/BridgeTest.java 2008-08-13 15:28:17 UTC (rev 15048)
@@ -31,7 +31,7 @@
public class BridgeTest extends SearchTestCase {
public void testDefaultAndNullBridges() throws Exception {
Cloud cloud = new Cloud();
- cloud.setDate( null );
+ cloud.setMyDate( null );
cloud.setDouble1( null );
cloud.setDouble2( 2.1d );
cloud.setIntegerv1( null );
@@ -128,7 +128,7 @@
c.set( Calendar.MILLISECOND, 5 );
Date date = new Date( c.getTimeInMillis() );
- cloud.setDate( date ); //5 millisecond
+ cloud.setMyDate( date ); //5 millisecond
cloud.setDateDay( date );
cloud.setDateHour( date );
cloud.setDateMillisecond( date );
@@ -148,7 +148,7 @@
Query query;
List result;
- query = parser.parse("date:[19900101 TO 20060101]"
+ query = parser.parse("myDate:[19900101 TO 20060101]"
+ " AND dateDay:[20001214 TO 2000121501]"
+ " AND dateMonth:[200012 TO 20001201]"
+ " AND dateYear:[2000 TO 200001]"
Modified: search/trunk/src/test/org/hibernate/search/test/bridge/Cloud.java
===================================================================
--- search/trunk/src/test/org/hibernate/search/test/bridge/Cloud.java 2008-08-13 15:12:13 UTC (rev 15047)
+++ search/trunk/src/test/org/hibernate/search/test/bridge/Cloud.java 2008-08-13 15:28:17 UTC (rev 15048)
@@ -34,7 +34,7 @@
private Float float1;
private float float2;
private String string;
- private Date date;
+ private Date myDate;
private Date dateYear;
private Date dateMonth;
private Date dateDay;
@@ -189,12 +189,12 @@
}
@Field(index=Index.UN_TOKENIZED, store=Store.YES)
- public Date getDate() {
- return date;
+ public Date getMyDate() {
+ return myDate;
}
- public void setDate(Date date) {
- this.date = date;
+ public void setMyDate(Date myDate) {
+ this.myDate = myDate;
}
@Field(index=Index.UN_TOKENIZED, store=Store.YES)