Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 45467 invoked from network); 4 Apr 2007 23:54:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 23:54:57 -0000 Received: (qmail 68825 invoked by uid 500); 4 Apr 2007 23:55:04 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 68701 invoked by uid 500); 4 Apr 2007 23:55:04 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 68692 invoked by uid 99); 4 Apr 2007 23:55:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 16:55:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@bea.com designates 66.248.192.39 as permitted sender) Received: from [66.248.192.39] (HELO repmmg02.bea.com) (66.248.192.39) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 16:54:56 -0700 Received: from repmmr02.bea.com (repmmr02.bea.com [10.160.30.72]) by repmmg02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l34Nsahl026923 for ; Wed, 4 Apr 2007 16:54:36 -0700 Received: from repbex02.amer.bea.com (repbex02.bea.com [10.160.26.99]) by repmmr02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l34NsZpP012963 for ; Wed, 4 Apr 2007 16:54:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: RE: API or Query hints Date: Wed, 4 Apr 2007 16:51:20 -0700 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD6303C83BF1@repbex02.amer.bea.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: API or Query hints Thread-Index: Acd3B8NPJkY76LzKTK6OlUFRSNkAFwADBXsA References: <20070403193500.DB28D1A9838@eris.apache.org> <7D856CDFE035FF45A0420ACBD71BDD6303C833D7@repbex02.amer.bea.com> <864cafc0704031324o4dba28a2m90e1794a1dda36c7@mail.gmail.com> <7D856CDFE035FF45A0420ACBD71BDD6303C83467@repbex02.amer.bea.com> From: "Patrick Linskey" To: x-BEA-PMX-Instructions: AV x-BEA-MM: Internal-To-External X-Virus-Checked: Checked by ClamAV on apache.org Hi, In the interests of putting my money where my mouth is, I attached a patch to the JIRA issue, and included a description of the patch in the JIRA issue. Hopefully, this will help a) make the problem and different solutions more concrete, and b) quell any concerns about implementability of the approach that I outlined. -Patrick -- Patrick Linskey BEA Systems, Inc. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. > -----Original Message----- > From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] > Sent: Wednesday, April 04, 2007 3:22 PM > To: open-jpa-dev@incubator.apache.org > Subject: API or Query hints > > I think any time we make a change to the external view of the > project > we need to have a discussion first. > > IMHO The JIRA process is pretty good for this kind of stuff. Someone > proposes a feature with non-standardized external behavior > and writes > up what it should look like. Then we agree on the details and > go for it. > > On this particular issue, I can see valid reasons for having an API > that modifies the behavior of the query, but also understand why it > might be good to mirror that behavior using query hints. But > whichever way we go, we need to agree on the name and semantics of > the API/property and how to pass it to the internal structures for > execution. > > There is a danger in thinking of these as "hints". As I would > like to > see it, the only down side to not recognizing a query hint is lower > performance. But if your application doesn't behave correctly if the > implementation can't do anything useful with the hint, then it's not > a hint but an application requirement. And if the hint can only be > executed in some specific databases, then we need to decide if we > throw an exception if the database isn't capable. > > Craig > > On Apr 4, 2007, at 2:17 PM, Abe White wrote: > > >> ... for certain values of "our". I think that it's > important that we > >> discuss API decisions as a group, as they have significant > impacts on > >> the OpenJPA product moving forward. This is especially > important when > >> there are dissenting views on a particular API decision, as is the > >> case > >> here. > > > > I agree with Patrick. API decisions need to be better thought out. > > For example, even if we decide as a group to use hints in this case, > > the names of the hints are important. The current hint names you > > chose are inconsistent with other OpenJPA hints in naming style and > > capitalization. > > > > > > Notice: This email message, together with any attachments, may > > contain information of BEA Systems, Inc., its subsidiaries > > and affiliated entities, that may be confidential, > proprietary, > > copyrighted and/or legally privileged, and is intended solely for > > the use of the individual or entity named in this message. If you > > are not the intended recipient, and have received this message in > > error, please immediately return this by email and then delete it. > > Craig Russell > Architect, Sun Java Enterprise System http://java.sun.com/products/jdo > 408 276-5638 mailto:Craig.Russell@sun.com > P.S. A good JDO? O, Gasp! > > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.