Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 58068 invoked from network); 28 Jan 2011 18:31:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 18:31:09 -0000 Received: (qmail 5701 invoked by uid 500); 28 Jan 2011 18:31:08 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 5693 invoked by uid 99); 28 Jan 2011 18:31:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 18:31:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 18:31:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0SIUiIv024202 for ; Fri, 28 Jan 2011 18:30:45 GMT Message-ID: <22400719.270401296239444965.JavaMail.jira@thor> Date: Fri, 28 Jan 2011 13:30:44 -0500 (EST) From: "Andy Jefferson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0 In-Reply-To: <5702654.172191295907703392.JavaMail.jira@thor> 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/JDO-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988171#action_12988171 ] Andy Jefferson commented on JDO-673: ------------------------------------ DataNucleus makes no use of them, so remove them from our point of view > Interface JDOEntityManagerFactory does not compile with JPA 2.0 > --------------------------------------------------------------- > > Key: JDO-673 > URL: https://issues.apache.org/jira/browse/JDO-673 > Project: JDO > Issue Type: Bug > Components: api, specification > Affects Versions: JDO 3 > Reporter: Michael Bouschen > Fix For: JDO 3 maintenance release 1 > > > The JDO Interface JDOEntityManagerFactory extends both factory interfaces: PersistenceManagerFactory (JDO) and EntityManagerFactory(JPA). Both interfaces define a method getProperties. In JDO PersistenceManagerFactory the method returns Properties and in JPA EntityManagerFactory returns Map. > This retults in an error when compiling the api: > JDOEntityManagerFactory.java:[28,7] types javax.jdo.PersistenceManagerFactory and javax.persistence.EntityManagerFactory are incompatible; both define getProperties(), but with unrelated return types > The the error did not occur earlier, because the api package used geronimo-jpa_3.0_spec as the JPA dependeny, but his is the JPA 1.0 specification. The correct dependency is geronimo-jpa_2.0_spec. > Possible solutions: change JDO PersistenceManagerFactory to return Map or remove the JDOEntityManagerFactory and JDOEntityManger interfaces. Are these being used by anyone? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.