You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "John Eckhart (JIRA)" <ji...@apache.org> on 2011/03/24 16:00:08 UTC
[jira] [Commented] (OPENJPA-655) Class level query filter
[ https://issues.apache.org/jira/browse/OPENJPA-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010694#comment-13010694 ]
John Eckhart commented on OPENJPA-655:
--------------------------------------
I see this patch has been sitting around for almost three years. Is there any reason this (or similar functionality) wasn't pushed into main?
> Class level query filter
> -------------------------
>
> Key: OPENJPA-655
> URL: https://issues.apache.org/jira/browse/OPENJPA-655
> Project: OpenJPA
> Issue Type: New Feature
> Components: query
> Reporter: Pinaki Poddar
> Assignee: Pinaki Poddar
> Attachments: class-filter.patch.txt
>
>
> A class-level query filter that applies to all queries implicitly is a useful functionality and available in similar software product [1].
> The base functionality is:
> a) A class can be annotated with a query
> @Entity
> @Filter(query="SELECT x FROM PObject x WHERE x.field = f1 AND x.status =! DONE")
> public class PObject {...}
> b) Any query on class PObject will augment the class-level filter predicates.
> c) @Filter query can be parametrized. The parameters can be set on current FetchPlan.
> Will attach a draft/prototype for such functionality. Please take a look and let me know your valued comments.
> [1] http://www.hibernate.org/hib_docs/reference/en/html/filters.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira