db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r417087 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/ExtentAwarePathExpressionsTest.java
Date Sun, 25 Jun 2006 23:03:25 GMT
Author: arminw
Date: Sun Jun 25 16:03:24 2006
New Revision: 417087

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

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

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/ExtentAwarePathExpressionsTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/ExtentAwarePathExpressionsTest.java?rev=417087&r1=417086&r2=417087&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/ExtentAwarePathExpressionsTest.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/ExtentAwarePathExpressionsTest.java
Sun Jun 25 16:03:24 2006
@@ -277,7 +277,7 @@
         criteria.addLike("date", "yes%");
         criteria.addEqualTo("qualifiers.importance", "unimportant");
         criteria.addEqualTo("qualifiers.name", "Sellers");
-        QueryByCriteria query = QueryFactory.newQuery(BaseContentImpl.class, criteria, true);
+        QueryByCriteria query = QueryFactory.newQuery(Paper.class, criteria, true);
         query.addPathClass("qualifiers", Qualifier.class);
         query.addPathClass("qualifiers", Topic.class);
         query.addPathClass("qualifiers", TopicExt.class);
@@ -296,7 +296,7 @@
         criteria.addLike("date", "yes%");
         criteria.addEqualTo("qualifiers.importance", "unimportant");
         criteria.addEqualTo("qualifiers.name", "Sellers");
-        QueryByCriteria query = QueryFactory.newQuery(BaseContentImpl.class, criteria, true);
+        QueryByCriteria query = QueryFactory.newQuery(Paper.class, criteria, true);
         //query.addPathClass("qualifiers", Qualifier.class);
         query.addPathClass("qualifiers", Topic.class);
         query.addPathClass("qualifiers", TopicExt.class);
@@ -318,7 +318,7 @@
         criteria.addPathClass("qualifiers", Qualifier.class);
         criteria.addPathClass("qualifiers", TopicExt.class);
         criteria.addPathClass("qualifiers", Topic.class);
-        QueryByCriteria query = QueryFactory.newQuery(BaseContentImpl.class, criteria, true);
+        QueryByCriteria query = QueryFactory.newQuery(Paper.class, criteria, true);
         List content = (List) broker.getCollectionByQuery(query);
 
         assertEquals(1, content.size());
@@ -337,7 +337,7 @@
         //criteria.addPathClass("qualifiers", Qualifier.class);
         criteria.addPathClass("qualifiers", TopicExt.class);
         criteria.addPathClass("qualifiers", Topic.class);
-        QueryByCriteria query = QueryFactory.newQuery(BaseContentImpl.class, criteria, true);
+        QueryByCriteria query = QueryFactory.newQuery(Paper.class, criteria, true);
         List content = (List) broker.getCollectionByQuery(query);
 
         assertEquals(1, content.size());



---------------------------------------------------------------------
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