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 4C5E010226 for ; Thu, 5 Dec 2013 14:16:55 +0000 (UTC) Received: (qmail 40555 invoked by uid 500); 5 Dec 2013 14:16:54 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 40270 invoked by uid 500); 5 Dec 2013 14:16:50 -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 40262 invoked by uid 99); 5 Dec 2013 14:16:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 14:16:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hwellmann.de@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 14:16:45 +0000 Received: by mail-ob0-f175.google.com with SMTP id uz6so17837171obc.34 for ; Thu, 05 Dec 2013 06:16:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=R1CEeipqkY03ysS1sxGa7oA59N/F4RP71JkfKSbaYUY=; b=BnyO6JJo3ygvlQLMxP+vAOJo4rVmV32M3RPanUSxt1boXqYJHM6gkMZCyJ5lLuA5OO wZec/f4QoVQYSPOM4KtFiPKtOvivy4RXJFgHf2BQGHJxry2UVV1Wz404fbcTU6BrAHtn QHqnJoIoSWrScXJ0rVfa0ILTcgmm6QPKaIKArueip1gSBK+SXjid+7z22BTTNenIbcd5 4ufjO9ReEYC1n5Bi/kc0qYoliFLddw2crFB0hshjWf3nJyj0RUbmAk6mVB4e9Hh+noQm YKP88ARZkE3hpT1efvwiQWG5UuPBjRqkcQrSuz5llNBJbZNzhFjyyaHQn2xvttGbVCd6 IM3w== MIME-Version: 1.0 X-Received: by 10.182.22.135 with SMTP id d7mr17430230obf.1.1386252984279; Thu, 05 Dec 2013 06:16:24 -0800 (PST) Received: by 10.76.154.73 with HTTP; Thu, 5 Dec 2013 06:16:24 -0800 (PST) In-Reply-To: <1385566815.47273.YahooMailNeo@web28903.mail.ir2.yahoo.com> References: <1385566815.47273.YahooMailNeo@web28903.mail.ir2.yahoo.com> Date: Thu, 5 Dec 2013 15:16:24 +0100 Message-ID: Subject: Re: Auditor issue after upgrading to OpenJPA 2.3.0 From: Harald Wellmann To: users@openjpa.apache.org, Mark Struberg Content-Type: multipart/alternative; boundary=001a11c2e190b269b504ecca2c15 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2e190b269b504ecca2c15 Content-Type: text/plain; charset=UTF-8 Please see https://issues.apache.org/jira/browse/OPENJPA-2464. There's a test case attached. Best regards, Harald 2013/11/27 Mark Struberg > This is not known, but we moved the invocation of the auditing mechanism > around a bit. > There must be a JIRA which is tagged as 2.3.1. > > Please create a new JIRA for it and we will take a look. > > LieGrue, > strub > > > > >________________________________ > > From: Harald Wellmann > >To: users@openjpa.apache.org > >Sent: Wednesday, 27 November 2013, 15:52 > >Subject: Auditor issue after upgrading to OpenJPA 2.3.0 > > > > > >After upgrading from OpenJPA 2.2.2 to 2.3.0, one of my regression tests > >fails since Auditor.audit() delivers too many objects. In particular, > after > >changing a given field from x to y, some of the updated objects occur > >twice, with the surplus occurrence reporting the field as changed from y > to > >y. > > > >Is this a known issue? > > > >The changes affect an embeddable type which occurs twice in a given > entity: > > > >@Entity > >@Auditable > >public class Container { > > > > @AttributeOverrides(...) > > private Item leftItem; > > > > @AttributeOverrides(...) > > private Item rightItem; > >} > > > >@Embeddable > >@Auditable(values = { AuditableOperation.UPDATE }) > >public class Item { > >} > > > >Best regards, > >Harald > > > > > > > --001a11c2e190b269b504ecca2c15--