Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 61953 invoked from network); 26 Jan 2010 13:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2010 13:52:39 -0000 Received: (qmail 68306 invoked by uid 500); 26 Jan 2010 13:52:39 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 68280 invoked by uid 500); 26 Jan 2010 13:52:39 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 68270 invoked by uid 99); 26 Jan 2010 13:52:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:52:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xenia_khailenka@tut.by designates 209.85.218.217 as permitted sender) Received: from [209.85.218.217] (HELO mail-bw0-f217.google.com) (209.85.218.217) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:52:33 +0000 Received: by bwz9 with SMTP id 9so3375355bwz.12 for ; Tue, 26 Jan 2010 05:52:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.48.197 with SMTP id s5mr1047038bkf.88.1264513927961; Tue, 26 Jan 2010 05:52:07 -0800 (PST) In-Reply-To: <4724C24F-FDF0-45D0-94E1-2C52AC1483E8@gmail.com> References: <145A8A5C-8270-497A-9890-69871D144B21@objectstyle.org> <367914A0-1F0C-4EA7-8905-E24FE64549D2@gmail.com> <4724C24F-FDF0-45D0-94E1-2C52AC1483E8@gmail.com> Date: Tue, 26 Jan 2010 15:52:07 +0200 Message-ID: Subject: Re: EJBQL client-side challenge From: Khailenko Ksenia To: dev@cayenne.apache.org Content-Type: multipart/alternative; boundary=00032555bc1e7d5d2e047e119734 --00032555bc1e7d5d2e047e119734 Content-Type: text/plain; charset=ISO-8859-1 Does the scenario at org.apache.cayenne.CayenneContextEJBQLTest.testEJBQLSelect() satisfy to the conditions you are talking about? Because in such a case we have the DbEntity with name "MT_TABLE1" and the ObjEntity with name "MtTable1" - they are different, aren't they? This test successfully passes with query "SELECT a FROM MtTable1 a", and fails on query "SELECT COUNT(a) FROM MtTable1 a" but not for the reason that you have, but because there is a problem with the processing scalar results. Could you give a more concrete example if I misunderstood the problem? 2010/1/26 Lachlan Deck > On 26/01/2010, at 6:51 PM, Andrus Adamchik wrote: > > > Will need to investigate that. Could be a bug. IIRC we officially > supported EJBQL on the client. > > Sure. Just to be clear, this error only occurs if the DbEntity name differs > from the ObjEntity name. Similar problems would occur (I imagine) with > property names. > > > > > Andrus > > > > On Jan 26, 2010, at 2:10 AM, Lachlan Deck wrote: > > > >> On 25/01/2010, at 6:19 PM, Andrus Adamchik wrote: > >> > >>>> I realise that the original reasoning for this was security > >>> > >>> This and also a general desire to encapsulate as many server details as > possible. > >>> > >>>> this presents a challenge for utilising EJBQ > >>> > >>> EJBQL should work without knowledge of DbEntity. What errors are you > getting? We may be able to fix by fixing processing pipeline. > >> > >> If you use a simple query such as 'SELECT COUNT(a) FROM > SomeEntityName....' the error returned is that no such Table/View exists. > >> > >> with regards, > >> -- > >> > >> Lachlan Deck > >> > >> > >> > >> > > > > with regards, > -- > > Lachlan Deck > > > > -- Regards, Ksenia Khailenko --00032555bc1e7d5d2e047e119734--