Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 44075 invoked from network); 5 Oct 2007 13:58:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 13:58:40 -0000 Received: (qmail 19881 invoked by uid 500); 5 Oct 2007 13:58:28 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 19266 invoked by uid 500); 5 Oct 2007 13:58:27 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 19255 invoked by uid 99); 5 Oct 2007 13:58:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 06:58:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of larry.meadors@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 13:58:28 +0000 Received: by ug-out-1314.google.com with SMTP id h2so663375ugf for ; Fri, 05 Oct 2007 06:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=7TvQnAEPgqLxyQFwUlBkDF9aWBoRTMCNFL0YPE4jJ6Y=; b=SCsz6NH9gI3Hv3buvQfa38xWYDAtqBzuS8kZCBf2yxYBHYi/1rRe+yNZSW9i7nHOix3dQbkmhra+sKzCVKoUT1Zwgxv31hMk6KfWE7SopD+71K3UbWBkcLoTi/78SVXc2yZEKqSC0zqBRwMXvrOejbvKEGzzwaCvYsu+NhjevMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=CDUDRYVDdrs0SR1kDk7F262ppccKsxAU6xcOQZO4tcfOzoaBFGMk58YwIi2Wi/jpUVfI9ubF41O7xkc0DAWzi67O29aW8Ex3rEuYgY85n9FdYwvecgE6ELh5m4RVpltoxgeLxcA/hpNS05u69QoSSx2X7y2Y6n9KxTB3Ml+J2+o= Received: by 10.67.19.9 with SMTP id w9mr3291282ugi.1191592686902; Fri, 05 Oct 2007 06:58:06 -0700 (PDT) Received: by 10.67.93.8 with HTTP; Fri, 5 Oct 2007 06:58:05 -0700 (PDT) Message-ID: Date: Fri, 5 Oct 2007 07:58:05 -0600 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Help needed for representing complex business relationship In-Reply-To: <13058357.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13056406.post@talk.nabble.com> <13058357.post@talk.nabble.com> X-Google-Sender-Auth: 00aa1cdedde73e4f X-Virus-Checked: Checked by ClamAV on apache.org Sounds like you could use a sub-select. Larry On 10/5/07, Amol Chaudhari wrote: > > Larry, > thanks for the reply. > The issue is i have in the topmost section, few values which are calculated > from the child lists. So the lists are needed at the time of calculations > itself. > > Anyway, Can you please help me on the following issue: > Lets say i have a Business object A having a1, a2, a3, a4,a5,a6 as instance > variables. I am getting a1 and a2 from my initial query. Now, a3,a4 are the > calculated fields, whose values i can get from another (single) query. also > a5 is a calculated field whose value also i can get from one more query. and > a6 = a3+a4+a5 (some formula like this). > My question is, how can i map the a3,a4 fileds in the resultMap of my > initial query so that i can populate both the values from a single query? > > Regards, > Amol > -- > View this message in context: http://www.nabble.com/Help-needed-for-representing-complex-business-relationship-tf4574170.html#a13058357 > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > >