[ 
https://issues.apache.org/jira/browse/JDO-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525965
 ] 

Ilan Kirsh commented on JDO-452:
--------------------------------

In the case above I assumed that em is a JDOEntityManager of course, but is 
referenced and used as an EntityManager where possible. Cast to 
JDOEntityManager is done only when an extension of JDO that is not supported in 
JPA is needed. Anyway, this should work well with the new interfaces.

Regarding the proxy, I didn't notice this before it but generating only 
JDOEntityManager proxies by JDOEntityManagerFactory seems as an elegant 
solution.

> Provide interfaces that extend both JDO and JPA
> -----------------------------------------------
>
>                 Key: JDO-452
>                 URL: https://issues.apache.org/jira/browse/JDO-452
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2
>    Affects Versions: JDO 2 final
>            Reporter: Michelle Caisse
>            Assignee: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: jdo-452.patch, jdo-452.patch
>
>
> Provide interfaces that extend both JDO and JPA in order to make it easier to 
> migrate applications from JDO to JPA.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to