Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 84072 invoked from network); 22 Sep 2008 07:32:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2008 07:32:23 -0000 Received: (qmail 1278 invoked by uid 500); 22 Sep 2008 07:32:13 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 1265 invoked by uid 500); 22 Sep 2008 07:32:13 -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 1254 invoked by uid 99); 22 Sep 2008 07:32:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2008 00:32:13 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.37] (HELO exprod6og116.obsmtp.com) (64.18.1.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2008 07:31:13 +0000 Received: from source ([168.230.130.248]) (using TLSv1) by exprod6ob116.postini.com ([64.18.5.12]) with SMTP; Mon, 22 Sep 2008 00:31:35 PDT Received: from STPMSGMB00.corp.fairisaac.com ([10.32.3.220]) by STPMSGPF01.corp.fairisaac.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Sep 2008 02:27:49 -0500 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_01C91C85.125F8DD0" Subject: RE: Ordering of the columns Date: Mon, 22 Sep 2008 02:27:43 -0500 Message-ID: <797EA62F5638BD45A4A1F9948BCEBD2C06A06944@STPMSGMB00.corp.fairisaac.com> In-Reply-To: <797EA62F5638BD45A4A1F9948BCEBD2C06A0692C@STPMSGMB00.corp.fairisaac.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ordering of the columns Thread-Index: AckcfOQx5rT+gErqTfSDf3TuVghuHgAB7btw References: <797EA62F5638BD45A4A1F9948BCEBD2C06A0692C@STPMSGMB00.corp.fairisaac.com> From: "Rajaram, Naresh" To: X-OriginalArrivalTime: 22 Sep 2008 07:27:49.0803 (UTC) FILETIME=[B7950FB0:01C91C84] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C91C85.125F8DD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, =20 My problem got solved. I am using LinkedHashMap instead of HashMap. =20 Will this be an issue? =20 Thanks Naresh =20 ________________________________ From: Rajaram, Naresh [mailto:NareshRajaram@fairisaac.com]=20 Sent: Monday, September 22, 2008 12:02 PM To: user-java@ibatis.apache.org Subject: Ordering of the columns =20 Hi All, =20 When I use resultClass=3D"java.util.HashMap", I was under the impression that, in what order the SQL Query returned values, the same way it will be stored inside the HashMap. =20 But to my surprise, the ordering inside the HashMap is completely different from the resultset column ordering. Why is that? =20 Is there any way through which I can mention that, the ordering have to be consistent with the database columns? =20 Please help me. =20 Thanks Naresh =20 This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. This email and any files transmitted with it are confidential, proprietar= y and intended solely for the individual or entity to whom they are address= ed. If you have received this email in error please delete it immediately. =0D ------_=_NextPart_001_01C91C85.125F8DD0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = All,

 

My problem got solved. I am using LinkedHashMap instead of HashMap.

 

Will this be an = issue?

 

Thanks

Naresh

 


From: = Rajaram, Naresh [mailto:NareshRajaram@fairisaac.com]
Sent: Monday, September = 22, 2008 12:02 PM
To: = user-java@ibatis.apache.org
Subject: Ordering of the = columns

 

Hi All,

 

When I use = resultClass=3D”java.util.HashMap”, I was under the impression that, in what order the SQL Query returned = values, the same way it will be stored inside the = HashMap.

 

But to my surprise, the ordering inside the HashMap = is completely different from the resultset column ordering. Why is = that?

 

Is there any way through which I can mention that, = the ordering have to be consistent with the database = columns?

 

Please help me.

 

Thanks

Naresh

 

This email and any files transmitted with it are confidential, =
proprietary
and intended solely for the individual or entity to whom they are =
addressed.
If you have received this email in error please delete it immediately.
This email and any files transmitted with it are confidential, propr=
ietary
and intended solely for the individual or entity to whom they are address=
ed.
If you have received this email in error please delete it immediately.
=0D
------_=_NextPart_001_01C91C85.125F8DD0--