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
This commit is contained in:
Marc Prud'hommeaux 2006-10-04 00:33:46 +00:00
parent c1a857c915
commit 88acae75c1

View File

@ -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;
}