[ https://issues.apache.org/jira/browse/OPENJPA-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673378#action_12673378 ] Pinaki Poddar commented on OPENJPA-885: --------------------------------------- I will suggest to look at Compatibility.setFlushBeforeDetach(boolean). Appropriate setting of this flag *may* itself be sufficient to address the needs for JPA 2.0 clear() methods which dictates no flushing before detach() while OpenJPA, by default, behaves otherwise. If you decide to go by setFlushBeforeDetach(boolean) route, then consider setting it in appropriate ProductDerivation (possibly with new versioning capability of OpenJPAConfiguration.getSpecification() to ensure backward compatibility). > Support clear methods on EntityManager, including new CascadeType.CLEAR > ------------------------------------------------------------------------ > > Key: OPENJPA-885 > URL: https://issues.apache.org/jira/browse/OPENJPA-885 > Project: OpenJPA > Issue Type: Sub-task > Affects Versions: 2.0.0 > Reporter: Dianne Richards > Assignee: Dianne Richards > Fix For: 2.0.0 > > Attachments: patch.txt > > > Support the 2.0 new EntityManager clear() methods. Also support the new CascadeType.CLEAR. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.