[
https://issues.apache.org/jira/browse/JDO-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Jefferson closed JDO-673.
------------------------------
> 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 (3.0)
> Reporter: Michael Bouschen
> Assignee: Michael Bouschen
> Fix For: JDO 3.1-rc1
>
>
> 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<String, Object>.
> 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<String, Object> or remove the JDOEntityManagerFactory and JDOEntityManger
> interfaces. Are these being used by anyone?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)