Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 75170 invoked from network); 12 Nov 2010 10:09:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 10:09:38 -0000 Received: (qmail 97123 invoked by uid 500); 12 Nov 2010 10:10:09 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 97000 invoked by uid 500); 12 Nov 2010 10:10:09 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 96990 invoked by uid 99); 12 Nov 2010 10:10:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 10:10:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brunorene@holos.pt designates 193.126.127.18 as permitted sender) Received: from [193.126.127.18] (HELO vm-mail.dmz.holos.pt) (193.126.127.18) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 10:10:00 +0000 Received: (qmail 25597 invoked from network); 12 Nov 2010 10:09:38 -0000 Received: from pcport-brd.prv.holos.pt (HELO pcportbrd) (brd@[172.17.3.40]) (envelope-sender ) by vm-mail.dmz.holos.pt (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 12 Nov 2010 10:09:38 -0000 From: =?iso-8859-1?Q?Bruno_Ren=E9_Santos?= To: References: <47412.95.93.134.16.1289549078.squirrel@webmail.holos.pt> <4CDCFEF5.7010400@maniatis.org> In-Reply-To: <4CDCFEF5.7010400@maniatis.org> Subject: RE: Filtering queries and relationships Date: Fri, 12 Nov 2010 10:09:36 -0000 Message-ID: <001201cb8251$b61962f0$224c28d0$@pt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuCRlg+mUgZ9XlHRbC7NhB5EQ0VfgACy9LQ Content-Language: pt X-Virus-Checked: Checked by ClamAV on apache.org This is a start. Can a qualifier receive a parameter? Like a $accountIds. For each user of the web application the qualifier will be different. Regards Bruno -----Mensagem original----- De: Aristedes Maniatis [mailto:ari@maniatis.org] Enviada: sexta-feira, 12 de Novembro de 2010 08:47 Para: user@cayenne.apache.org Assunto: Re: Filtering queries and relationships On 12/11/10 7:04 PM, Bruno Rene Fernandes Monteiro Duarte dos Santos wrote: > Hello all, > > Is there any way on Cayenne where i can insert a default where clause that > would limit all queries and relationships for a specific class? I need to > do this to filter resources on a web application. http://cayenne.apache.org/doc/modeling-objentities.html --> ObjEntity Qualifier -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A