You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2006/01/21 18:20:49 UTC

svn commit: r371090 - /db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml

Author: arminw
Date: Sat Jan 21 09:20:43 2006
New Revision: 371090

URL: http://svn.apache.org/viewcvs?rev=371090&view=rev
Log:
use QueryFactory in documentation examples

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml?rev=371090&r1=371089&r2=371090&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml Sat Jan 21 09:20:43 2006
@@ -1401,7 +1401,7 @@
 criteria.addEqualTo("developer.name","Bob");
 cirteria.addEquatTo("language.name","Java");
 
-Query q = new QueryByCriteria(ProjectRelationship.class, criteria, true);
+Query q = QueryFactory.newQuery(ProjectRelationship.class, criteria, true);
 Iterator iter = Broker.getIteratorByQuery(q);
 
 // now iterate over the collection and retrieve all projects:
@@ -1423,7 +1423,7 @@
 criteria.addEqualTo("projectRelationships.developer.name","bob");
 cirteria.addEquatTo("projectRelationships.language.name","java");
 
-Query q = new QueryByCriteria(Project.class, criteria, true);
+Query q = QueryFactory.newQuery(Project.class, criteria, true);
 Collection projects = Broker.getCollectionByQuery(q);]]></source>
                 <p>
                     This is the layout of the Project class:



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