openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgras...@apache.org
Subject svn commit: r1548222 - /openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java
Date Thu, 05 Dec 2013 17:52:00 GMT
Author: jgrassel
Date: Thu Dec  5 17:52:00 2013
New Revision: 1548222

URL: http://svn.apache.org/r1548222
Log:
OPENJPA-2318: Left outer join is not generated when specified using Criteria API

Modified:
    openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java

Modified: openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java?rev=1548222&r1=1548221&r2=1548222&view=diff
==============================================================================
--- openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java
(original)
+++ openjpa/branches/2.2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Joins.java
Thu Dec  5 17:52:00 2013
@@ -197,17 +197,18 @@ abstract class Joins {
                         if (c.isRegistered(_parent)) { 
                             Value var = c.getRegisteredVariable(_parent);
                             path = factory.newPath(var);
-                        } else 
+                        } else {
                             path = factory.newPath(subQ);
+                        }
                         path.setMetaData(meta);
-                        path.get(_member.fmd, false);
+                        path.get(_member.fmd, allowNull);
                         path.setSchemaAlias(c.getAlias(_parent));
                     } 
                 } else if (c.isRegistered(_parent)) {
                     Value var = c.getRegisteredVariable(_parent);
                     path = factory.newPath(var);
                     path.setMetaData(meta);
-                    path.get(_member.fmd, false);
+                    path.get(_member.fmd, allowNull);
                 } else            
                     path = (org.apache.openjpa.kernel.exps.Path)toValue(factory, c);
                 
@@ -409,14 +410,14 @@ abstract class Joins {
                             path = factory.newPath(subQ);
                         }
                         path.setMetaData(meta);
-                        path.get(_member.fmd, false);
+                        path.get(_member.fmd, allowNull);
                         path.setSchemaAlias(c.getAlias(_parent));
                     } 
                 } else if (c.isRegistered(_parent)) {
                     Value var = c.getRegisteredVariable(_parent);
                     path = factory.newPath(var);
                     path.setMetaData(meta);
-                    path.get(_member.fmd, false);
+                    path.get(_member.fmd, allowNull);
                 } else {           
                     path = (org.apache.openjpa.kernel.exps.Path)toValue(factory, c);
                 }



Mime
View raw message