[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-530) Allow application of filters on subqueries

Heiko Burchard (JIRA) noreply at atlassian.com
Wed Nov 12 11:58:17 EST 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heiko Burchard updated HHH-530:
-------------------------------

    Attachment: HqlSqlWalker-branch32.patch

Maybe I found a solution to our problem. For the left outer joins where the parameters are lost HqlSqlWalker.handleWithFragment is called, which constructs a new SqlGenerator. If I add the collectedParameters of this SqlGenerator to the fromElements embeddedParameters all the query parameters are correctly bound and the query is executed. But I'm not sure if this is the right place to "rescue" those parameters...
A Patch for branch 3.2 is attached.

> Allow application of filters on subqueries
> ------------------------------------------
>
>                 Key: HHH-530
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-530
>             Project: Hibernate Core
>          Issue Type: Patch
>          Components: core
>            Reporter: Gavin King
>            Assignee: Steve Ebersole
>             Fix For: 3.2.x, 3.3.x, 3.4
>
>         Attachments: HHH-530.3.3.SP1.patch, HHH-530.3.3.SP1.take2.patch, HHH-530.Additional.Subquery.patch, HHH-530.patch, hibernate_filter_fix-3.0.5.patch, hibernate_filter_fix-3.0.5_14.patch, HqlSqlWalker-branch32.patch, HqlWithFiltersTest.patch, SubqueriesWithFiltersTest.patch
>
>
> Currently filter conditions are applied in subselects, they should not be.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list