From 88acae75c16b0f9307377283fee34c0ad3980417 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Wed, 4 Oct 2006 00:33:46 +0000 Subject: [PATCH] Removed special logic for forcing an inner join for projection clauses, since that logic is duplicated elsewhere. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452684 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/kernel/jpql/JPQLExpressionBuilder.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java index 3a013e5f5..282a87fcf 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java @@ -313,16 +313,6 @@ class JPQLExpressionBuilder Value proj = getValue(node); exps.projections[i] = proj; exps.projectionAliases[i] = nextAlias(); - - // projections along PCs in JPQL imply inner join semantics: - // e.g. "select x.y.z.someField from Entity x" implies - // "where y is not null and z is not null" - if (proj instanceof Path && node.id == JJTPATH) { - Path path = getPCPath(node); - if (path.last() != null - && path.last().getDeclaredTypeMetaData() != null) - exp = addJoin(path, null, true, exp); - } } return exp; }