Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 245AA93CB for ; Mon, 19 Sep 2011 08:39:57 +0000 (UTC) Received: (qmail 89533 invoked by uid 500); 19 Sep 2011 08:39:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 89465 invoked by uid 500); 19 Sep 2011 08:39:56 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 89456 invoked by uid 99); 19 Sep 2011 08:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 08:39:56 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SmutjeJim@gmx.net designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Sep 2011 08:39:48 +0000 Received: (qmail 27630 invoked by uid 0); 19 Sep 2011 08:39:26 -0000 Received: from 87.234.201.250 by www003.gmx.net with HTTP; Mon, 19 Sep 2011 10:39:26 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Mon, 19 Sep 2011 10:39:26 +0200 From: "Christopher Cudennec" Message-ID: <20110919083926.22130@gmx.net> MIME-Version: 1.0 Subject: Problems getting the old state of a Map / auditing To: users@openjpa.apache.org X-Authenticated: #757189 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+8/KpYNYG8ZF9gbgZRwZl3GpBx2O9nDtRqDVQ9sn fF3fmo5KGXBqRX+NXfZb5vpH0mOwwOSItYIg== Content-Transfer-Encoding: 8bit X-GMX-UID: icdAf5c7YmYBc/O6bnc3lftCWkZTQRRz Hi Pinaki, hi everyone else ;)! First of all thanks for pointing me to 'openjpa.RestoreState', Pinaki. Now I got the problem solved with the old state from the SaveFieldManager. Unfortunately I have another issue with Maps. When I change the value of a Map entry I can't track the change because the old and the new Map contain the same values (although the Maps are not the same instance). I have the following situation: @Entity public class Parent { ... @ElementCollection(fetch = FetchType.EAGER) private Map stringAttributes = new HashMap(); ... } @Embeddable public class StringAttribute { ... @Column private String value = new String(); ... } Can you confirm that issue or do you have any idea what the problem could be? Thanks a lot :), Christopher -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone