Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 459C217D99 for ; Sat, 27 Sep 2014 16:11:34 +0000 (UTC) Received: (qmail 55182 invoked by uid 500); 27 Sep 2014 16:11:34 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 55133 invoked by uid 500); 27 Sep 2014 16:11:34 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 55121 invoked by uid 99); 27 Sep 2014 16:11:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2014 16:11:34 +0000 Date: Sat, 27 Sep 2014 16:11:34 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARIES-1234) Recreate Aries JPA 2.0 support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14150649#comment-14150649 ] Christian Schneider commented on ARIES-1234: -------------------------------------------- Sounds good. Even better would be to avoid that a 2.1 client can connect to a 2.0 persistence provider. Not sure how to do it but I guess it is possible. > Recreate Aries JPA 2.0 support > ------------------------------ > > Key: ARIES-1234 > URL: https://issues.apache.org/jira/browse/ARIES-1234 > Project: Aries > Issue Type: Bug > Components: JPA > Affects Versions: 0.4 > Reporter: Mark Nuttall > Assignee: Mark Nuttall > > Aries-1047 moved the JPA support up to JPA 2.1. However classes that implement the JPA 2.1 API cannot work against the JPA 2.0 API. > For example, javax.persistence.EntityManager has gained a number of new methods such as createStoredProcedureQuery() which return an object of class javax.persistence.StoredProcedureQuery. The class _does not exist_ in JPA 2.0. > A class that implements the 2.1 version of EntityManager can not be loaded under the JPA 2.0 API. > org.apache.aries.jpa.container.impl.EntityManagerWrapper implements javax.persistence.EntityManager. This means that it now has public API methods with class signatures that can not possibly work in a JPA 2.0 environment. Attempts to do so yield errors of the form, > java.lang.ClassNotFoundException: javax.persistence.StoredProcedureQuery cannot be found by org.apache.aries.jpa.container.context. > We need the JPA 2.0 code back. This will first be achieved by restoring the JPA container code to /trunk/jpa20/... at the svn level before the commit that broke it, http://svn.apache.org/viewvc?view=revision&revision=1610718. > Most of the code remains common, but will require additional effort to refactor: this can be done, if desired, under future JIRAs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)