db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r522120 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java
Date Sat, 24 Mar 2007 22:24:01 GMT
Author: arminw
Date: Sat Mar 24 15:24:00 2007
New Revision: 522120

URL: http://svn.apache.org/viewvc?view=rev&rev=522120
Log:
fix test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java?view=diff&rev=522120&r1=522119&r2=522120
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/QueryTest.java Sat Mar
24 15:24:00 2007
@@ -133,7 +133,7 @@
         broker.store(p3);
         broker.commitTransaction();
 
-        Criteria crit = new Criteria().addEqualToField("firstname", "lastname");
+        Criteria crit = new Criteria().addEqualToField("firstname", "lastname").addEqualTo("lastname",
name);
         QueryByCriteria q = QueryFactory.newQuery(Person.class, crit);
         q.setDistinct(true);
         Collection result = broker.getCollectionByQuery(q);



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message