db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r432347 - /db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java
Date Thu, 17 Aug 2006 19:10:47 GMT
Author: brj
Date: Thu Aug 17 12:10:47 2006
New Revision: 432347

URL: http://svn.apache.org/viewvc?rev=432347&view=rev
Log:
force outer join 

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java?rev=432347&r1=432346&r2=432347&view=diff
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/odmg/OQLOrOnForeignKeyTest.java Thu Aug 17 12:10:47
2006
@@ -20,6 +20,7 @@
 import java.util.List;
 
 import org.apache.ojb.junit.ODMGTestCase;
+import org.apache.ojb.odmg.oql.OQLQueryImpl;
 import org.apache.ojb.odmg.shared.PersonImpl;
 import org.apache.ojb.odmg.shared.TestClassA;
 import org.apache.ojb.odmg.shared.TestClassB;
@@ -132,6 +133,8 @@
         query = odmg.newOQLQuery();
         query.create("select person from " + PersonImpl.class.getName() +
                      " where (mother.firstname=$1 or father.firstname=$2)");
+        ((OQLQueryImpl)query).getQuery().setPathOuterJoin("mother");
+        ((OQLQueryImpl)query).getQuery().setPathOuterJoin("father");
         query.bind("mom");
         query.bind("dad");
         persons = (List) query.execute();



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