[ 
https://issues.apache.org/jira/browse/OPENJPA-2513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-2513.
--------------------------------------
    Resolution: Fixed

Already fixed on master: 49bbeb84f (OPENJPA-2950, ancestor of HEAD) removed the 
'TODO -- need to handle subqueries': evalAccessPaths now walks the correlated 
joins of the subquery (CriteriaExpressionBuilder.java:93-112), and SubqueryImpl 
passes its access path to the enclosing query, which evalNavigatedAccessPaths 
merges in. Closing; please reopen if this still happens with OpenJPA 4.x.

> CriteriaExpressionBuilder needs to handle subqueries when building accessPaths
> ------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2513
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2513
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: criteria, query
>    Affects Versions: 2.4.0
>            Reporter: Richard G. Curtis
>            Assignee: Richard G. Curtis
>            Priority: Major
>
> While digging into OPENJPA-2502, I discovered that 
> CriteriaExpressionBuilder.evalAccessPaths(..) doesn't process subqueries when 
> determining accessPaths. I don't have a very great understanding of the 
> accessPath concept, but when comparing the access path of a JPQL query to a 
> criteria query I can see that criteria doesn't do it the same as JPQL.
> I added a TODO in CriteriaExpressionBuilder.evalAccessPaths denoting where I 
> think we have additional work.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to