Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 4209 invoked from network); 26 Jan 2010 15:26:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2010 15:26:10 -0000 Received: (qmail 19510 invoked by uid 500); 26 Jan 2010 15:26:10 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 19493 invoked by uid 500); 26 Jan 2010 15:26:10 -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 19483 invoked by uid 99); 26 Jan 2010 15:26:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 15:26:10 +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: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 26 Jan 2010 15:26:02 +0000 Received: (qmail 555 invoked from network); 26 Jan 2010 15:25:40 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 26 Jan 2010 15:25:40 -0000 Message-Id: <9CE7FF4F-F0A0-4D36-8B4C-44C957A9E563@objectstyle.org> From: Andrus Adamchik To: dev@cayenne.apache.org In-Reply-To: <71FED56F-9D00-4354-A16F-53720B2266A4@objectstyle.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: EJBQL client-side challenge Date: Tue, 26 Jan 2010 17:25:39 +0200 References: <145A8A5C-8270-497A-9890-69871D144B21@objectstyle.org> <367914A0-1F0C-4EA7-8905-E24FE64549D2@gmail.com> <4724C24F-FDF0-45D0-94E1-2C52AC1483E8@gmail.com> <7CC0F41E-B6E5-464C-8249-8650284E04F9@gmail.com> <71FED56F-9D00-4354-A16F-53720B2266A4@objectstyle.org> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Actually looks like we can reproduce this problem. EJBQLQuery does query compilation on the client, and that accesses DbRelationships. So this is not related to naming, but rather to the use of joins. A fix can be rather invasive, so how does everybody feel about making EJBQL a server-only feature in 3.0 and doing necessary refactoring in 3.1? Andrus On Jan 26, 2010, at 5:03 PM, Andrus Adamchik wrote: > > On Jan 26, 2010, at 4:50 PM, Lachlan Deck wrote: > >> Strictly speaking, yes. But you could also say that one is a >> derivative of the other. e.g., upper-casing camel casing and joined >> via underscore which is a common db mapping (which perhaps cayenne >> allows for, especially when reverse engineering). > > No, Cayenne doesn't make any such adhoc conversions. So MT_TABLE and > MtTable1 are different names, and the framework will not attempt a > conversion. > > So do you have a stack trace of the error BTW? > > Andrus >