Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 97119 invoked from network); 1 Feb 2011 23:29:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 23:29:50 -0000 Received: (qmail 28126 invoked by uid 500); 1 Feb 2011 23:29:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 28084 invoked by uid 500); 1 Feb 2011 23:29:49 -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 28062 invoked by uid 99); 1 Feb 2011 23:29:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 23:29:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 23:29:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09534188A1A for ; Tue, 1 Feb 2011 23:29:29 +0000 (UTC) Date: Tue, 1 Feb 2011 23:29:29 +0000 (UTC) From: "Mark Struberg (JIRA)" To: dev@openjpa.apache.org Message-ID: <1470135504.4040.1296602969035.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <702054850.147.1296495508891.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (OPENJPA-1933) @ElementCollection loose proxytype after serialisation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989451#comment-12989451 ] Mark Struberg commented on OPENJPA-1933: ---------------------------------------- work in progress. probably only a unit test configuration problem... > @ElementCollection loose proxytype after serialisation > ------------------------------------------------------ > > Key: OPENJPA-1933 > URL: https://issues.apache.org/jira/browse/OPENJPA-1933 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 2.0.0, 2.0.1 > Reporter: Mark Struberg > Priority: Critical > Fix For: 2.2.0 > > Attachments: OPENJPA-1933-test.patch > > > usually an @ElementCollection field loaded from the database will be created as a org.apache.openjpa.java$.util$.ArrayListProxy. > After serialisation/deserialisation (with DetachedStateField=true) the List will be recreated as standard java.util.ArrayList. > This has the bad side effect, that any subsequent add to this ElementCollection will not set the _dirty field in the DetachedStateManager and any changes in the ElementCollection will not get saved to the database. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira