Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DB8EF13 for ; Tue, 3 May 2011 13:44:45 +0000 (UTC) Received: (qmail 20322 invoked by uid 500); 3 May 2011 13:44:44 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 20293 invoked by uid 500); 3 May 2011 13:44:44 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 20285 invoked by uid 99); 3 May 2011 13:44:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 13:44:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 13:44:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 193F8BF16F for ; Tue, 3 May 2011 13:44:03 +0000 (UTC) Date: Tue, 3 May 2011 13:44:03 +0000 (UTC) From: "Aram Hovanisyan (JIRA)" To: dev@openjpa.apache.org Message-ID: <989366630.18512.1304430243084.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-655) Class level query filter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028226#comment-13028226 ] Aram Hovanisyan commented on OPENJPA-655: ----------------------------------------- This is a valuable request. Count me as another vote for this filter > 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