mirror of
https://github.com/apache/openjpa.git
synced 2025-03-01 14:09:06 +00:00
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:
parent
c1a857c915
commit
88acae75c1
@ -313,16 +313,6 @@ class JPQLExpressionBuilder
|
|||||||
Value proj = getValue(node);
|
Value proj = getValue(node);
|
||||||
exps.projections[i] = proj;
|
exps.projections[i] = proj;
|
||||||
exps.projectionAliases[i] = nextAlias();
|
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;
|
return exp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user