[ 
https://issues.apache.org/jira/browse/OPENJPA-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695657#comment-13695657
 ] 

Mark Struberg commented on OPENJPA-2405:
----------------------------------------

> Managed entities are also provided by find/query operations (though it would 
> return a detached entity if it's a CMTS entitymanager invocation outside of a 
> transaction.)

Well, this is not quite what I do read from the JPA and JTA specs. The spec 
says that in such cases all query operations must succeed (thus also lacy 
loading shall work) but all write operations must get queued until the 
EntityManager joins a transaction.
And this mechanism is lacking in OpenJPA I fear. At least I'm not aware that we 
can do this somehow.
                
> EntityManager.merge does not work for entity that is managed by another 
> EntityManager
> -------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2405
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2405
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.3
>            Reporter: Arne Limburg
>         Attachments: OPENJPA-2405.patch
>
>
> EntityManager.merge does not work for entity that is managed by another 
> EntityManager. Instead of updating that entity OpenJPA tries to persist the 
> entity a second time

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to