Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 26033 invoked from network); 27 May 2005 12:55:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 12:55:54 -0000 Received: (qmail 27019 invoked by uid 500); 27 May 2005 12:55:52 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 26985 invoked by uid 500); 27 May 2005 12:55:51 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 26972 invoked by uid 99); 27 May 2005 12:55:51 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of brandon.goodin@gmail.com designates 64.233.170.204 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 05:55:41 -0700 Received: by rproxy.gmail.com with SMTP id c16so409464rne for ; Fri, 27 May 2005 05:55:20 -0700 (PDT) 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:content-disposition:references; b=ACQAPS4TAwshWBeGRjzTp8TuJ3XxGbzN65M8gx788KGyJMH4Nd+0XP3y1/QdH8FwCvngnJfOyNre/Ywpj6gjQJ8VzT++XXvEN9+hBuAVxUMC3jLPzUCqLScD8b3v+iD8tAynEP/d7BL0pYCBr8OMQAMnqhYkhG/cSFzwqhKFwDg= Received: by 10.38.12.13 with SMTP id 13mr3562147rnl; Fri, 27 May 2005 05:55:20 -0700 (PDT) Received: by 10.38.74.48 with HTTP; Fri, 27 May 2005 05:55:20 -0700 (PDT) Message-ID: <2fe5ef5b05052705554725f90a@mail.gmail.com> Date: Fri, 27 May 2005 06:55:20 -0600 From: Brandon Goodin Reply-To: Brandon Goodin To: ibatis-user-java@incubator.apache.org Subject: Re: Question on dynamic Select Columns In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey Ritu, The dynamic tags examine the parameterMap or parameterClass not the resultMap. Also, since your select results will potentially differ you will need to set the remapResults=3D"true" attribute in the =20 >=20 > SELECT ID,=20 >=20 > NAME=20 >=20 > =20 >=20 > =20 >=20 > DESCRIPTION,=20 >=20 > =20 >=20 > =20 >=20 > FROM SOME_TABLE=20 >=20 > =20 >=20 > =20 >=20 > NAME $name_operator$ #name#=20 >=20 > =20 >=20 > =20 >=20 > DESCRIPTION $description_operator$ #description#= =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > Where $resultMap$ would be passed via the Java API.=20 >=20 > =20 >=20 > If the resultMap is hard bound to the following:=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > In the above select if the resultMap=3D"Detail_ResultMap" then when prope= rty > "fetchDetails" is not present then I get a SQLException "Invalid Column > Name" for the Description column.=20 >=20 > =20 >=20 > Could someone please suggest a way to accommodate the above requirement o= f > having dynamic select columns?=20 >=20 > =20 >=20 > Thanks and Regards,=20 >=20 > Ritu Kedia