From dev-return-19323-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Jul 12 18:46:39 2011 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E8FE6A64 for ; Tue, 12 Jul 2011 18:46:39 +0000 (UTC) Received: (qmail 84834 invoked by uid 500); 12 Jul 2011 18:46:39 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 84745 invoked by uid 500); 12 Jul 2011 18:46:38 -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 84737 invoked by uid 99); 12 Jul 2011 18:46:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 18:46:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 18:46:28 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6CIk52X002925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jul 2011 18:46:06 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6CIk4Ef012617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Jul 2011 18:46:04 GMT Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6CIjx8s001969 for ; Tue, 12 Jul 2011 13:45:59 -0500 MIME-Version: 1.0 Message-ID: <5ff5eb28-411e-4d16-bf58-77b3f6eedec9@default> Date: Tue, 12 Jul 2011 11:45:59 -0700 (PDT) From: Craig Russell To: Subject: Upgrade from 2.0.x to 2.1.x X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4E1C966F.001A:SCFMA922111,ss=1,re=-4.000,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've written an extension to JDBCStoreManager that works well with OpenJPA = 2.0 but fails with OpenJPA 2.1. The failure is when trying to traverse a one-one relationship where the rel= ationship is set to null. It looks like the fact that the related object is= null (the referring oid in the owning side has a null field in it) is the = problem. Was there a change in strategy from 2.0 to 2.1 in this area? I'm just looki= ng for clues as to how to fix my code. Thanks, Craig