[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-594) Filters for MappedSuperClass

Daniel Gredler (JIRA) noreply at atlassian.com
Thu Sep 4 15:40:04 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31088#action_31088 ] 

Daniel Gredler commented on ANN-594:
------------------------------------

It would also be nice if @FilterDef annotations were processed, too. That way you could annotate a mapped superclass with both @FilterDef and @Filter.

(Note that this could be taken further, and Hibernate could process queries and type defs in mapped superclasses, too.)

> Filters for MappedSuperClass
> ----------------------------
>
>                 Key: ANN-594
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-594
>             Project: Hibernate Annotations
>          Issue Type: New Feature
>          Components: binder
>    Affects Versions: 3.3.0.ga
>            Reporter: Shawn Clowater
>            Priority: Minor
>
> Based on discussion from
> http://forum.hibernate.org/viewtopic.php?t=963539&start=0
> Essentially, it would be nice to be able to define filters on a MappedSuperClass and have them 'trickle down' to the subclasses. (at the class level - not sure if property level filters are carried down right now).
> I see the MappedSuperClass as a means to define generic behaviour (common columns, etc) and I think it makes sense for the filters to play nicely as well.
> In addition, I don' t know if it is already a separate JIRA request, filters off of an Interface would be fantastic as well as our application is using filters heavily and are always looking at ways to reduce the amount of filter annotations that we have to spread around.
> Right now, we're either forced to copy filter annotations all over the place OR we've actually been a bit sneaky and have tapped into custom persisters to dynamically apply common filters.  However, there is a separate issue based on the order that entity persisters are built.

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