Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 33461 invoked from network); 9 Mar 2009 14:57:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 14:57:22 -0000 Received: (qmail 73940 invoked by uid 500); 9 Mar 2009 14:57:16 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 73882 invoked by uid 500); 9 Mar 2009 14:57:16 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 73799 invoked by uid 99); 9 Mar 2009 14:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 07:57:16 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 14:57:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5A36234C04C for ; Mon, 9 Mar 2009 07:56:52 -0700 (PDT) Message-ID: <312000969.1236610612742.JavaMail.jira@brutus> Date: Mon, 9 Mar 2009 07:56:52 -0700 (PDT) From: "Dianne Richards (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-885) Support clear methods on EntityManager, including new CascadeType.CLEAR In-Reply-To: <2105410322.1233353099564.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dianne Richards updated OPENJPA-885: ------------------------------------ Attachment: CompatibilityProblemPatch.txt I'm attaching the CompatibilityProblemPatch file. This contains 2 test cases. The first one, TestCompatibilityChanges, show that things are working fine. The secondOne, TestCompatibilityProblem, shows the problem. In the second one, I've added a property change to the setUp call. This apparently ends up passing the property in on the createEntityManagerFactory(). Also in this patch are 2 code changes. The Compatibility class has several new instance variables with associated setter/getter methods. The PersistenceProductDerivation class has calls to the setter methods to change the default values for openjpa. So, to repeat what is happening, the PPD changes are working correctly initially, as seen in the TestCompatibilityChanges test case. But, when a change to Compatibility is specified on the createEMF(), these changes are lost because the entire Compatibility object is lost when the _value variable is set to null. I realize the this is a singleton. However, this property seems to be a special case because iterative changes can be made to it. > 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: CompatibilityProblemPatch.txt, 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.