You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Bouschen (JIRA)" <ji...@apache.org> on 2011/01/24 23:21:43 UTC

[jira] Created: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0

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<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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0

Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bouschen resolved JDO-673.
----------------------------------

    Resolution: Fixed

Checked in the removal of the two interfaces:

Deleting       src/java/javax/jdo/JDOEntityManager.java
Deleting       src/java/javax/jdo/JDOEntityManagerFactory.java

Committed revision 1064882.


> 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
>            Assignee: 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<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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0

Posted by "Andy Jefferson (JIRA)" <ji...@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<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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0

Posted by "Craig L Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988154#action_12988154 ] 

Craig L Russell commented on JDO-673:
-------------------------------------

I propose that we remove the two interfaces JDOEntityManagerFactory and JDOEntityManager from the 3.1 release. This is a backward compatibility issue but never worked with the published JPA 2.0 specification. Since it is impossible to instantiate a class implementing this interface, it probably is not an issue.

Any objections to removing these two interfaces?


> 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<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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JDO-673) Interface JDOEntityManagerFactory does not compile with JPA 2.0

Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bouschen reassigned JDO-673:
------------------------------------

    Assignee: Michael Bouschen

> 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
>            Assignee: 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<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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.