[
https://issues.apache.org/jira/browse/OPENJPA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845911#action_12845911
]
Michael Dick commented on OPENJPA-1562:
---------------------------------------
Hi Dianne, you're right per the spec a managed entity is one that has a
persistent identity and is associated with the persistence context. A removed
entity fits that description.
I still think we can be a bit smarted about code reuse, but that's secondary to
this issue - consider both my questions answered :-)
> EntityManager:Refresh on Removed entity does not trigger
> IllegalArgumentException
> ---------------------------------------------------------------------------------
>
> Key: OPENJPA-1562
> URL: https://issues.apache.org/jira/browse/OPENJPA-1562
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 2.0.0-beta2
> Environment: Mac OS X, OpenJPA 2.0.0-beta2, Spring 3.0
> Reporter: Jerry Carter
> Assignee: Dianne Richards
> Priority: Minor
> Attachments: openjpa1562.tar.zip, patch.txt, simple_entity_tests.txt
>
>
> My application unit tests turned up some unexpected behavior from basic
> OpenJPA entity manager functions. It appears, for instance, that a detached
> entity can still be refreshed. I decided to write a few basic tests
> (attached) which report five potential errors. This does not go into the
> testing of cascading behavior which would require additional work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.