[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-663) Enabling filters for get(), load(), ... - please reopen HHH-67

Markus Merder (JIRA) noreply at atlassian.com
Thu Nov 20 05:17:16 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31753#action_31753 ] 

Markus Merder commented on HHH-663:
-----------------------------------

I agree to Erico, it's not clear, that filters only work for HQL-Queries. Maybe Filters should be called HQLFilter instead. I have experienced some applications, which could not use filters due to the lack of filtering every statement (also on update, delete).

> Enabling filters for get(), load(), ... - please reopen HHH-67
> --------------------------------------------------------------
>
>                 Key: HHH-663
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-663
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.0.5
>            Reporter: Michael Wyraz
>
> Hibernate filters apply only to queries, not to load/get by id. This was also postet as bug HHH-67. This bug was rejected with the reason "This is by intent and thus not a bug."
> The Hibernate documentation says for Filters: "Filters can be used like database views, but parameterized inside the application.". The filter is attached to a class or a collection.
> So in my oppinion there's no reason _not_ to use filters with get() or load(). In fact, that's what users expect after reading the documentation.
> So the current behaviour is a bug. Either in hibernate or in the documentation.
> Michael.

-- 
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