Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 5251 invoked from network); 18 Jan 2008 16:54:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2008 16:54:53 -0000 Received: (qmail 8420 invoked by uid 500); 18 Jan 2008 16:54:41 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 8253 invoked by uid 500); 18 Jan 2008 16:54:40 -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 8242 invoked by uid 99); 18 Jan 2008 16:54:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 08:54:40 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of swboyd@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 16:54:15 +0000 Received: by fg-out-1718.google.com with SMTP id d23so1063198fga.32 for ; Fri, 18 Jan 2008 08:54:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=JkhOr22CCkXIOoWd97Mh/NuzD7WNE45JvtT8ZX62S5E=; b=d2jibDodpu1d9GEP5UgZBqcP2Yuivd6RxK2A9+y+lUW1KOA0lYUW3K0q0QiedT/op4rUO+hdy9brLI5sdFbG1dTEkKuWVwTdI3FqcZNTsBPWGtq3tQ8eC8qTwEb++aFp3XVYeJ5tElEOVrcXto9q0VbAFG3UZGNxMyFPZlHRpWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=yEOyze+dbeFzH7cgiVh3A2qaTOg3IInK0p+qDqLGKkIyBJ8AVWxFmZeQCTp/U3YOjfFgu31rEVC0R1vLRE/vUMCHOyZBgB72F/vjh5c6KKPadhdZs1ntQu4hrcIvWiIkyP3372G0nl5ufP9TQWvGruGCmMDTUTCyOVGWFGrEdSg= Received: by 10.86.50.8 with SMTP id x8mr3261897fgx.25.1200675260687; Fri, 18 Jan 2008 08:54:20 -0800 (PST) Received: by 10.86.63.20 with HTTP; Fri, 18 Jan 2008 08:54:20 -0800 (PST) Message-ID: <80bfbb6d0801180854q3fc7ab84ncd499e446502c10c@mail.gmail.com> Date: Fri, 18 Jan 2008 11:54:20 -0500 From: "Stephen Boyd" To: user-java@ibatis.apache.org Subject: Re: Strings in Complex Collection Properties In-Reply-To: <747461.4813.qm@web45711.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4653_135047.1200675260695" References: <747461.4813.qm@web45711.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4653_135047.1200675260695 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't think so. If this has changed, I would like to know as well. The way I had to workaround it was to include the constant in the result set. For example, select a, b, c, "M" as range from someTable On Jan 18, 2008 2:45 AM, Shirad Mashura wrote: > Can a string be used in place of a column name as part of a composite key > below: > > select="getGeoCode" /> > > Normally range would be a column found in the current Select, but can a > value of "M" be passed to the other query? > > ------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > ------=_Part_4653_135047.1200675260695 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't think so.  If this has changed, I would like to know as well.

The way I had to workaround it was to include the constant in the result set.

For example,

select a, b, c, "M" as range
from someTable

On Jan 18, 2008 2:45 AM, Shirad Mashura <shirad70@yahoo.com> wrote:
Can a string be used in place of a column name as part of a composite key below:

<result property="geoCode" column="{center=GEO_POINT, range='M'}"  select="getGeoCode" />

Normally range would be a column found in the current Select, but can a value of "M" be passed to the other query?


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

------=_Part_4653_135047.1200675260695--