Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 23753 invoked from network); 14 Sep 2006 21:38:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 21:38:27 -0000 Received: (qmail 86318 invoked by uid 500); 14 Sep 2006 21:38:27 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 86307 invoked by uid 99); 14 Sep 2006 21:38:27 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 14:38:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:42925] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 0C/A0-07618-A3BC9054 for ; Thu, 14 Sep 2006 14:37:09 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4258F7142D4 for ; Thu, 14 Sep 2006 21:32:22 +0000 (GMT) Message-ID: <30105469.1158269542269.JavaMail.jira@brutus> Date: Thu, 14 Sep 2006 14:32:22 -0700 (PDT) From: "Abe White (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-426) NullCollectionsAndIsEmpty does not unset mapped side of relation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N NullCollectionsAndIsEmpty does not unset mapped side of relation ---------------------------------------------------------------- Key: JDO-426 URL: http://issues.apache.org/jira/browse/JDO-426 Project: JDO Issue Type: Bug Components: tck20 Affects Versions: JDO 2 final Reporter: Abe White org.apache.jdo.tck.query.jdoql.NullCollectionsAndIsEmpty uses its localSetUp() method to null the projects of an Employee. However, the Employee.projects field uses mapped-by in its mapping, and per section 15.3 of the JDO 2 spec, that means changes to it aren't reflected in the datastore. To fix, add the following lines after retrieving "emp1" but before nulling its projects in localSetUp(): for (Iterator itr = emp1.getProjects().iterator(); itr.hasNext();) ((Project) itr.next()).removeMember(emp1); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira