Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 30040 invoked from network); 13 Apr 2011 13:02:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2011 13:02:57 -0000 Received: (qmail 54747 invoked by uid 500); 13 Apr 2011 13:02:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 54712 invoked by uid 500); 13 Apr 2011 13:02:57 -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 54704 invoked by uid 99); 13 Apr 2011 13:02:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2011 13:02:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.109.24.32] (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2011 13:02:48 +0000 Received: from remote.huizemolenaar.nl (D57D0452.static.ziggozakelijk.nl [213.125.4.82]) (authenticated bits=0) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id p3DD2OuZ083802 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 13 Apr 2011 15:02:28 +0200 (CEST) (envelope-from henno@huizemolenaar.nl) Received: from HMS.hm.local ([fe80::6051:4a91:4c0d:d963]) by HMS.hm.local ([fe80::6051:4a91:4c0d:d963%10]) with mapi; Wed, 13 Apr 2011 15:02:21 +0200 From: Henno Vermeulen To: "'users@openjpa.apache.org'" Date: Wed, 13 Apr 2011 14:59:32 +0200 Subject: RE: two issues when not using a DetachedStateField Thread-Topic: two issues when not using a DetachedStateField Thread-Index: Acv50fQ8QfQ96xU6SjG8Yo2VhAafLAABcO3gAACV/BA= Message-ID: <1C448C478A6B4743AF19DBC3C3DCE13201B7FB4DF055@HMS.hm.local> References: <1C448C478A6B4743AF19DBC3C3DCE13201B7FB4DF04F@HMS.hm.local> <1C448C478A6B4743AF19DBC3C3DCE13201B7FB4DF052@HMS.hm.local> In-Reply-To: <1C448C478A6B4743AF19DBC3C3DCE13201B7FB4DF052@HMS.hm.local> Accept-Language: nl-NL Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nl-NL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Even though the merge succeeds, there is one big issue with removing the ca= scade from the bidirectional relation namely I get that=20 event !=3D event.activities.get(0).event Could this mean that event is unnecessarily fetched and extra unnecessary S= QL gets executed (I've seen issues on this)? -----Oorspronkelijk bericht----- Van: Henno Vermeulen [mailto:henno@huizemolenaar.nl]=20 Verzonden: woensdag 13 april 2011 14:40 Aan: 'users@openjpa.apache.org' Onderwerp: RE: two issues when not using a DetachedStateField Issue 2 also does not occury when Activity to Event is not set to cascade. The issue also doesn't occur when StringI18N is removed and the object grap= h is only three entities deep. So it is quite a complicated combination of = factors: no detached state field, four entities and a cascade from Activity= to Event... -----Oorspronkelijk bericht----- Van: Henno Vermeulen [mailto:henno@huizemolenaar.nl]=20 Verzonden: woensdag 13 april 2011 14:30 Aan: 'users@openjpa.apache.org' Onderwerp: two issues when not using a DetachedStateField We use OpenJPA 2.1.0 with build time enhancement. We have a client/server s= ituation so we always detach + serialize entities on commit using fetch gro= ups: