You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Mike Kienenberger (JIRA)" <ji...@apache.org> on 2013/09/27 16:26:02 UTC

[jira] [Closed] (CAY-1875) PrefetchSelectQuery incorrectly applies entity qualifiers

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

Mike Kienenberger closed CAY-1875.
----------------------------------

    Resolution: Invalid

After a great deal of testing and investigation, I have discovered that QualifierTranslator.extractQualifier() is where the prefetch root qualifier is added to the query.

After removing all other query modification, the STABLE-3.1 branch correctly is building prefetch queries.   So the error must have been in my own restricting qualifier code conflicting with the qualifier code support already available in Cayenne 3.1.  Closing this as invalid.


                
> PrefetchSelectQuery incorrectly applies entity qualifiers
> ---------------------------------------------------------
>
>                 Key: CAY-1875
>                 URL: https://issues.apache.org/jira/browse/CAY-1875
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B2
>            Reporter: Mike Kienenberger
>
> The modeler's entity qualifier isn't applied to prefetch queries.
> http://www.mail-archive.com/user@cayenne.apache.org/msg08241.html
> Andrus:
> > This is bad and is not supposed to happen. Appears to be a bug. I am checking
> > SelectQueryPrefetchRouterAction, and it applies *root* entity qualifier to prefetch query instead of
> > prefetched entity. Should be a relatively easy fix for "disjoint" prefetches at least.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira