Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 50257 invoked from network); 7 Nov 2006 21:21:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 21:21:22 -0000 Received: (qmail 37067 invoked by uid 500); 7 Nov 2006 21:21:31 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 37041 invoked by uid 500); 7 Nov 2006 21:21:30 -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 37030 invoked by uid 99); 7 Nov 2006 21:21:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:21:30 -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 (herse.apache.org: domain of michaeljlumley@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wr-out-0506.google.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:21:17 -0800 Received: by wr-out-0506.google.com with SMTP id i20so437775wra for ; Tue, 07 Nov 2006 13:20:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=NvSisidhQcKF5mCD4MyBzNOjLQ5/48Fdzq7LjMa1PTiWJz2h4WU4Fd+2dY0v2Zwjm1hbpifhhCxSTpaZu0NRiJFucYAoy9dgyTsclo73XSebbZyiAGhP3JhPqHdWXPPE4sp/gT3MzY3BLymuRKSre7nJWG4R2zmXF2D+T+61VxU= Received: by 10.78.127.3 with SMTP id z3mr8809183huc.1162934454952; Tue, 07 Nov 2006 13:20:54 -0800 (PST) Received: by 10.78.196.7 with HTTP; Tue, 7 Nov 2006 13:20:54 -0800 (PST) Message-ID: <4334dfb00611071320u50ec2646q8f47142d046f372b@mail.gmail.com> Date: Wed, 8 Nov 2006 08:20:54 +1100 From: "Michael Lumley" Sender: michaeljlumley@gmail.com To: user-java@ibatis.apache.org Subject: Re: resultMap in another file In-Reply-To: <454B8CC3.9070501@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12461_21094684.1162934454916" References: <454B8CC3.9070501@gmail.com> X-Google-Sender-Auth: 3ecabe775a4d8bc0 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_12461_21094684.1162934454916 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there, I haven't actually tried it myself, but in the developer guide it says in order to use namespaces, you must enable useStatementNamespaces in the "settings" elements of your SQL Map Xml config file. By default it is disabled. Cheers Michael On 04/11/06, Landry Soules wrote: > > Hello, > > I have an address sqlmap and a country sqlmap. Each defines a resultmap > in its own file. > I would like to refer to country resultmap in address sqlmap : > > > > > It should be possible, according to documentation, but i get an error : > > com.ibatis.sqlmap.client.SqlMapException: There is no result map named > country.abatorgenerated_CountryResult in this SqlMap. > at com.seenxl.persistence.DaoConfig.(DaoConfig.java:40) > ... 14 more > > What am i doing wrong ? > > Thanks for your help > ------=_Part_12461_21094684.1162934454916 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there,

I haven't actually tried it myself, but in the developer guide it says in order to use namespaces, you must enable useStatementNamespaces in the "settings" elements of your SQL Map Xml config file. By default it is disabled.

Cheers
Michael

On 04/11/06, Landry Soules <landry.p.soules@gmail.com> wrote:
Hello,

I have an address sqlmap and a country sqlmap. Each defines a resultmap
in its own file.
I would like to refer to country resultmap in address sqlmap :

<select id="getCountry" parameterClass="string"
resultMap="country.abatorgenerated_CountryResult">
  select * from country where id = #value#
  </select>


It should be possible, according to documentation, but i get an error :

com.ibatis.sqlmap.client.SqlMapException: There is no result map named
country.abatorgenerated_CountryResult in this SqlMap.
    at com.seenxl.persistence.DaoConfig.<clinit>(DaoConfig.java:40)
    ... 14 more

What am i doing wrong ?

Thanks for your help

------=_Part_12461_21094684.1162934454916--