[
https://issues.apache.org/jira/browse/OPENJPA-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840783#action_12840783
]
Kevin Sutter commented on OPENJPA-680:
--------------------------------------
Jerry,
In your example, SimpleEntity e is no longer "new" once you called persist(e).
At that point, e is now a managed instance and is a member of the persistence
context. So, the IllegalArgumentException would not be expected in this case.
Kevin
> Flush followed by refresh on a new instance returns an instance with all
> fields but id cleared
> ----------------------------------------------------------------------------------------------
>
> Key: OPENJPA-680
> URL: https://issues.apache.org/jira/browse/OPENJPA-680
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.2.0, 1.2.1, 1.3.0
> Reporter: Srinivasa
> Priority: Minor
> Attachments: OPENJPA-680.patch, testcase.zip
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.