Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 80312 invoked from network); 27 Oct 2006 22:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 22:40:30 -0000 Received: (qmail 5318 invoked by uid 500); 27 Oct 2006 22:40:39 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 5304 invoked by uid 500); 27 Oct 2006 22:40:39 -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 5292 invoked by uid 99); 27 Oct 2006 22:40:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 15:40:39 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of STAN.OU@ngc.com designates 208.20.220.55 as permitted sender) Received: from [208.20.220.55] (HELO xmrt0101.northgrum.com) (208.20.220.55) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 15:40:27 -0700 Received: from XBHT0001.northgrum.com ([132.228.189.53]) by xmrt0101.northgrum.com with InterScan Message Security Suite; Fri, 27 Oct 2006 15:39:13 -0700 Received: from xmbcaf01.northgrum.com ([129.193.104.95]) by XBHT0001.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 27 Oct 2006 16:40:04 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6FA18.D89B36D4" Subject: How can I set resultmap or resultclass to be dynamic? Date: Fri, 27 Oct 2006 15:40:04 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How can I set resultmap or resultclass to be dynamic? thread-index: Acb6GNg2Uvgua1TEQHWK0H/fRhJALg== From: "Ou, Stan \(Mission Systems\)" To: X-OriginalArrivalTime: 27 Oct 2006 22:40:04.0727 (UTC) FILETIME=[D8A1A870:01C6FA18] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C6FA18.D89B36D4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Is it possible to do something like this in iBatis? In my dao, I would like to do something like this: queryForObject("getLookupTable", "lookuptable1"); queryForObject("getLookupTable", "lookuptable2"); I have the pojo's for the lookup tables but how I can pass it to iBatis as a parameter to the resultMap? Thx Stan ------_=_NextPart_001_01C6FA18.D89B36D4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How can I set resultmap or resultclass to be dynamic?

Hi,

Is it possible to do something like = this in iBatis?

     <select = id=3D"getLookupTable" = parameterClass=3D"java.lang.String" = resultMap=3D"pass-in-at-runtime" >
      select = * from $value$
     = </select>

In my dao, I would like to do something = like this:

queryForObject("getLookupTable", = "lookuptable1");
queryForObject("getLookupTable", = "lookuptable2");

I have the pojo's for the lookup tables = but how I can pass it to iBatis as a parameter to the resultMap?  = Thx

Stan

------_=_NextPart_001_01C6FA18.D89B36D4--