From dev-return-11898-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu May 14 21:42:10 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 62010 invoked from network); 14 May 2009 21:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 21:42:10 -0000 Received: (qmail 73716 invoked by uid 500); 14 May 2009 21:42:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 73669 invoked by uid 500); 14 May 2009 21:42:09 -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 73659 invoked by uid 99); 14 May 2009 21:42:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 21:42:09 +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; Thu, 14 May 2009 21:42:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 886AE234C004 for ; Thu, 14 May 2009 14:41:45 -0700 (PDT) Message-ID: <1025247056.1242337305544.JavaMail.jira@brutus> Date: Thu, 14 May 2009 14:41:45 -0700 (PDT) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1086) Investigate the effort to integrate metamodel generation and refactoring in Eclipse IDE 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 Investigate the effort to integrate metamodel generation and refactoring in Eclipse IDE --------------------------------------------------------------------------------------- Key: OPENJPA-1086 URL: https://issues.apache.org/jira/browse/OPENJPA-1086 Project: OpenJPA Issue Type: New Feature Components: tooling Reporter: Pinaki Poddar One of the major addition in JPA 2.0 is type-aware Criteria query construction. A string-based JPQL can become invalid when a persistent entity property changes its name or type, but such error is detected only at runtime. On the other hand, for a Criteria query, such an error will be detected at compile time. This primary usability advantage of Criteria query can really become useful in an IDE with refactoring support. The native refactoring support provided by IDE though is not sufficient. For example, when a persistent property 'xyz' of entity C is renamed to 'abc', the native refactoring support will appropriately change all references to 'C.xyz' to 'C.abc'. However, a Criteria query is built with reference to C_.xyz and *not* C.xyz where C_ is the meta-class corresponding to C. Hence, a IDE plugin should expand the footprint of refactoring to include C_.xyz when C.xyz changes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.