Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 97710 invoked from network); 12 May 2004 21:36:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 May 2004 21:36:53 -0000 Received: (qmail 32613 invoked by uid 500); 12 May 2004 21:37:13 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 32471 invoked by uid 500); 12 May 2004 21:37:11 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 32402 invoked by uid 98); 12 May 2004 21:37:10 -0000 Received: from Andrew.Clute@osn.state.oh.us by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(66.145.203.12):. Processed in 0.261656 secs); 12 May 2004 21:37:10 -0000 X-Qmail-Scanner-Mail-From: Andrew.Clute@osn.state.oh.us via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(66.145.203.12):. Processed in 0.261656 secs) Received: from unknown (HELO MAIL.osn.state.oh.us) (66.145.203.12) by hermes.apache.org with SMTP; 12 May 2004 21:37:09 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C43869.324E92B3" Subject: Bug in QueryReferenceBroker? Date: Wed, 12 May 2004 17:36:33 -0400 Message-ID: <316E5B943771D311BAC500805FD7A07803431F7C@MAIL.osn.state.oh.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Bug in QueryReferenceBroker? Thread-Index: AcQ4aTJJoXEtC27+Ts6RmPjl2VmE6g== From: "Clute, Andrew" To: "OJB Users List" , "OJB Developers List" X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C43869.324E92B3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I recently updated to HEAD and am finding a weird issue now. I have an object Session, that has a reference to an Object called Person. Now Person is a proxy object. I am using an Anonymous FK to reference Person from Session. When I try to restore Session when it has no Person hanging on it, it restores the Session object with a Person Proxy object hanging off of it (it shouldn't!), and the Proxy's PK being a collection of null. I think I might have narrowed down why it is happening: Method getReferencedObjectIdentity(), here is a code snipet: if (hasNullifiedFKValue) { if(isAnonymousKeyReference(cld, rds)) { Object referencedObject =3D = rds.getPersistentField().get(obj); if(referencedObject !=3D null) { return new Identity(referencedObject, pb); } } else { return null; } } // ensure that top-level extents are used for Identities return new Identity(rds.getItemClass(), pb.getTopLevelClass(rds.getItemClass()), fkValues); In my case, I have a nullifiedFKValue, so it goes into the first If block, and then it sees that it is an AnonymousKeyReference, but then my referencesObject us null (like it should be). But instead of returning null, it jums out to the bottom where it returns a new Identity!! Why is it doing that? I can see where Armin has made some changes to handle better AnonymousFK's, is this a side-effect of that? -ANdrew ------_=_NextPart_001_01C43869.324E92B3--