[ 
https://issues.apache.org/jira/browse/OPENJPA-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136940#comment-18136940
 ] 

ASF subversion and git services commented on OPENJPA-3046:
----------------------------------------------------------

Commit 89f85efe1d8530e0bc29d88f79fc9aec470182fb in openjpa's branch 
refs/heads/master from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=89f85efe1 ]

[OPENJPA-3046] Register criteria parameters used in the ON condition of a join 
(#254)

> 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)
  • [jira] [Commented] (OPENJPA... ASF subversion and git services (Jira) via dev
    • [jira] [Commented] (OP... ASF subversion and git services (Jira) via dev

Reply via email to