Return-Path:
Delivered-To: apmail-ibatis-user-java-archive@www.apache.org
Received: (qmail 11765 invoked from network); 27 Nov 2006 17:39:46 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2)
by minotaur.apache.org with SMTP; 27 Nov 2006 17:39:46 -0000
Received: (qmail 41056 invoked by uid 500); 27 Nov 2006 17:39:52 -0000
Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org
Received: (qmail 40880 invoked by uid 500); 27 Nov 2006 17:39:51 -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 40869 invoked by uid 99); 27 Nov 2006 17:39:51 -0000
Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 09:39:51 -0800
X-ASF-Spam-Status: No, hits=2.0 required=10.0
tests=HTML_MESSAGE,UPPERCASE_25_50
X-Spam-Check-By: apache.org
Received-SPF: pass (herse.apache.org: local policy)
Received: from [202.91.136.20] (HELO igatemx3.igate.com) (202.91.136.20)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 09:39:40 -0800
X-SEF-Processed: 5_0_0_910__2006_11_27_23_09_10
Received: from Bangalore BHD [192.168.112.111] by igatemx3 - SurfControl
E-mail Filter (5.2.0); Mon, 27 Nov 2006 23:09:10 +0530
Received: from igtechnexc01.igatecorp.com ([192.168.177.113]) by
igteblrowa01.igatecorp.com with Microsoft SMTPSVC(6.0.3790.1433);
Mon, 27 Nov 2006 23:05:56 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C7124A.7F1694E3"
Subject: Need help on nested N + 1 query
Date: Mon, 27 Nov 2006 23:09:15 +0530
Message-ID:
<8CA0DB1C6F90AD4FA258843E456E0B5304D2FE63@igtechnexc01.igatecorp.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Need help on nested N + 1 query
Thread-Index: AccSSvT3Cmli2j/OQC+L1q29qPD6+g==
From: "Tamilselvan Radha Krishnan"
To:
X-OriginalArrivalTime: 27 Nov 2006 17:35:56.0915 (UTC)
FILETIME=[7EE4C430:01C7124A]
X-Virus-Checked: Checked by ClamAV on apache.org
This is a multi-part message in MIME format.
------_=_NextPart_001_01C7124A.7F1694E3
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,=0D=0AI've written a N + 1 query in Ibatis such a way that it will retur=
n the=0D=0Anested results as below :=0D=0A=0D=0A Customer - First object=0D=
=0A DealFacility - An array list of objects within Customer=0D=0A=
Facility - An array list of objects within=0D=0ADealFa=
cility=0D=0A LoanInfo - An array list of objects wit=
hin=0D=0AFacility=0D=0A =20=0D=0A=0D=0AThe Customer object is having a 's=
trCustomerId' as an attribute. I need=0D=0Ato use this 'strCustomerId' in =
the WHERE clause of the query used for=0D=0Apopulating 'LoanInfo' (