[
https://issues.apache.org/jira/browse/OPENJPA-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509092#comment-16509092
]
robert engels commented on OPENJPA-2741:
----------------------------------------
I cloned the issue, please see comments in OPENJPA-2405. Something is broken,
since if the ManyToOne annotation has no cascade option, it shouldn't even be
attempting to persist the associated entity.
Code works fine in EclipseLink
> CLONE - EntityManager.merge does not work for entity that is managed by
> another EntityManager
> ---------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2741
> URL: https://issues.apache.org/jira/browse/OPENJPA-2741
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.4.2
> Reporter: robert engels
> Assignee: Jody Grassel
> Priority: Major
> Fix For: 2.3.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)