Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 64554 invoked from network); 27 Jan 2005 20:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jan 2005 20:42:10 -0000 Received: (qmail 86514 invoked by uid 500); 27 Jan 2005 20:42:08 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 86474 invoked by uid 500); 27 Jan 2005 20:42:08 -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 86439 invoked by uid 99); 27 Jan 2005 20:42:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of tomdzk@gmail.com designates 64.233.170.193 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.193) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 27 Jan 2005 12:42:06 -0800 Received: by rproxy.gmail.com with SMTP id f1so329214rne for ; Thu, 27 Jan 2005 12:42:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Rt7+Z/Q569e61sFi81/3dSeO1eKexvyNwcuHo9ao2R2Nq0bxx4y9+hvD8sKnUuch/zAmZCILgSuxz0dtLfHBaof+xNLt2O36fUNFdH+fLruQUb8s7nmvKsLQ1wRgQyCv0MGJ1hP9z88Sl6Z/OvNXm53VwD6s1eHhrbG/E1eCamM= Received: by 10.38.149.55 with SMTP id w55mr131386rnd; Thu, 27 Jan 2005 12:42:04 -0800 (PST) Received: by 10.38.162.45 with HTTP; Thu, 27 Jan 2005 12:42:04 -0800 (PST) Message-ID: <224f3234050127124230f6beb6@mail.gmail.com> Date: Thu, 27 Jan 2005 21:42:04 +0100 From: Thomas Dudziak Reply-To: Thomas Dudziak To: OJB Developers List Subject: Re: Materialising the wrong type of object when prefetching relations hips where related class is part of extent In-Reply-To: <224f323405012703191c71acfd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <7758957EB3E8D411B3D40002A5072006026B4D6B@ctldn03.credittrade.com> <224f3234050125100658b0df56@mail.gmail.com> <224f32340501261354777106cb@mail.gmail.com> <224f323405012703191c71acfd@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mhm, a couple of points: * A minor thing but you should not use the id-stuff for the field descriptors but rather reference the foreignkey fields directly. Has no bearance to your problem but anyway ... * Perhaps you should declare the ojbConcreteClass field in the whole hierarchy of CreditDefaultSwap, i.e. even in Instrument. Likewise, it might help if you duplicate Instrument's fields in the descriptor of InstrumentModel. Or perhaps you don't need InstrumentModel's descriptor ? Do you query for it (it is not used elsewhere in the repository file) ? * I don't understand where in BasePrefetcher#prefetchRelationship an access to a field descriptor might happen. Could you set a breakpoint to the MetadataException and post where the exception is uttered and what the context is ? Tom --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org