[
https://issues.apache.org/jira/browse/OPENJPA-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840761#action_12840761
]
Jerry Carter commented on OPENJPA-680:
--------------------------------------
>From the JPA 2.0 specification, section 3.2.5, "If [entity] X is a new,
>detached, or removed entity, the IllegalArgumentException is thrown".
This does not appear to be the case under OpenJPA 1.2.2:
SimpleEntity e = new SimpleEntity();
em.persist(e);
em.refresh(e);
return e;
I realize that OpenJPA 1.2.x is based on OpenJPA 1.0. That specification is
ambiguous as to what behavior would be expected.
> 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.