[
https://issues.apache.org/jira/browse/OPENJPA-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136682#comment-18136682
]
ASF subversion and git services commented on OPENJPA-3046:
----------------------------------------------------------
Commit 0e75e85b32fe4910607603a239224b81a29008dc in openjpa's branch
refs/heads/OPENJPA-3046 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0e75e85b3 ]
[OPENJPA-3046] Register criteria parameters used in the ON condition of a join
> Criteria parameter used only in a join ON condition is not registered
> ---------------------------------------------------------------------
>
> Key: OPENJPA-3046
> URL: https://issues.apache.org/jira/browse/OPENJPA-3046
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Richard Zowalla
> Priority: Major
>
> A criteria parameter that is used only in the ON condition of a join, for
> example
> {code:java}
> Join<A, B> j = root.join("b");
> j.on(cb.equal(j.get("name"), cb.parameter(String.class, "n")));
> {code}
> is not collected by {{CriteriaQueryImpl.collectParameters}}, so
> {{setParameter("n", ...)}} fails with "Parameter named n is not declared".
> Roots are not visited and a join does not visit its ON predicate.
> OPENJPA-3040 fixed the same for the select list, group by and order by.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)