Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 78999 invoked from network); 2 Jun 2009 19:43:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 19:43:19 -0000 Received: (qmail 11814 invoked by uid 500); 2 Jun 2009 19:43:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 11779 invoked by uid 500); 2 Jun 2009 19:43:31 -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 11769 invoked by uid 99); 2 Jun 2009 19:43:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 19:43:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 19:43:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9BCC5234C056 for ; Tue, 2 Jun 2009 12:43:07 -0700 (PDT) Message-ID: <753070400.1243971787637.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 12:43:07 -0700 (PDT) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1013) Build strictly-typed Criteria API In-Reply-To: <2133264374.1238517770430.JavaMail.jira@brutus> 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-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Bauer updated OPENJPA-1013: ---------------------------------- Parent Issue: OPENJPA-1105 (was: OPENJPA-1052) > Build strictly-typed Criteria API > --------------------------------- > > Key: OPENJPA-1013 > URL: https://issues.apache.org/jira/browse/OPENJPA-1013 > Project: OpenJPA > Issue Type: Sub-task > Reporter: Pinaki Poddar > Assignee: Pinaki Poddar > Fix For: 2.0.0-M1 > > Original Estimate: 1344h > Remaining Estimate: 1344h > > JPA 2.0 has introduced specification for strictly-typed dynamic query construction a.k.a Criteria API. The design challenge to support this feature comes from the following > 1. how to leverage existing OpenJPA query infrastructure? > 2. the type-strictness is supported on the basis of a instantiated meta-model -- this is new for OpenJPA query infrastructure. Should we introduce more type-strictness in OpenJPA query infrastructure or not? > The design goals (currently) > 1. select current design pattern rather than some arbitrary hack to bridge existing OpenJPA query infrastructure and JPA 2.0 type-strict Criteria. Possibly it is Adapter pattern. > 2. Do not change OpenJPA query infrastructure with more type-strictness (it is not type-free after all). Rather inject type information from the artifacts that implement new Criteria API into OpenJPA query artifacts. > The implementation strategy: > 1. Prototype the approach first. > 2. Solidify a design that can be boiler plated (ok, almost) for numerous supported query expression and clauses. Then delegate construction of these parts. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.