Return-Path: Delivered-To: apmail-ibatis-user-cs-archive@www.apache.org Received: (qmail 96883 invoked from network); 25 Jul 2007 14:05:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 14:05:27 -0000 Received: (qmail 88741 invoked by uid 500); 25 Jul 2007 14:05:28 -0000 Delivered-To: apmail-ibatis-user-cs-archive@ibatis.apache.org Received: (qmail 88733 invoked by uid 500); 25 Jul 2007 14:05:27 -0000 Mailing-List: contact user-cs-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-cs@ibatis.apache.org Delivered-To: mailing list user-cs@ibatis.apache.org Received: (qmail 88722 invoked by uid 99); 25 Jul 2007 14:05:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 07:05:27 -0700 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 mnbob70@gmail.com designates 64.233.162.235 as permitted sender) Received: from [64.233.162.235] (HELO nz-out-0506.google.com) (64.233.162.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 07:05:25 -0700 Received: by nz-out-0506.google.com with SMTP id x3so227751nzd for ; Wed, 25 Jul 2007 07:05:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mvax3dLuvYBP1mHEyWJxCeCPuQGRBhrUgPWlMfZhwGildYFfJTVDdHPCABZz+u7KKwZ+v+83rRo8GDh6hrrERXjK++rWsWtYXSup5jKoC2NJnumNuFHCEvrCykKsxwXYH7D84lI43iBWpKOlW1Ur81brkd3tVGMWO5HRNhrS4Ao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Yt4lTrf703IjH0tue+iqujflVL2Eta0YlVhBz3Omt6jpuvOMtMYJZexXuSLu5wdmoKJjiLi8eyc1T9/QvMr4gg3AWvdgOUOn+2I3q/GWAO3MiZlj9Ilx+obWHcdn2Z30o0qMbNj/veoS2OfC1GkwSi0BzDzFi9MCNXRJmkd2BFQ= Received: by 10.114.106.1 with SMTP id e1mr674443wac.1185372303994; Wed, 25 Jul 2007 07:05:03 -0700 (PDT) Received: by 10.114.210.12 with HTTP; Wed, 25 Jul 2007 07:05:03 -0700 (PDT) Message-ID: <33952bfe0707250705x22891410s3fcbbe928fe6fd83@mail.gmail.com> Date: Wed, 25 Jul 2007 09:05:03 -0500 From: "Bob Hanson" To: user-cs@ibatis.apache.org Subject: Re: Constuctor with GroupBy Problem In-Reply-To: <46a7189b.27ba720a.328b.ffffc5c3@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_175690_2183041.1185372303962" References: <46a7189b.27ba720a.328b.ffffc5c3@mx.google.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_175690_2183041.1185372303962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Group by result maps do not currently support the use of a constructor element. On 7/25/07, Samnang Chhun wrote: > > Hi, > > > > I'm just getting to work with iBatis.Net in my C# project. I found a > problem when I call constructor with groupBy in my ResultMap. What have I > done something wrong? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My error is : System.NullReferenceException: Object reference not set to > an instance of an object. > > > > > > Cheers, > > Samnang > ------=_Part_175690_2183041.1185372303962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Group by result maps do not currently support the use of a constructor element.

On 7/25/07, Samnang Chhun <samnang.chhun@gmail.com > wrote:

Hi,

 

I'm just getting to work with iBatis.Net in my C# project. I found a problem when I call constructor with groupBy in my ResultMap. What have I done something wrong?

 

<resultMap id="personResult" class ="Person" groupBy=" _id">

      <constructor>

          <argument argumentName ="id" column=" id"/>

      </constructor>

      <result property="_name" column ="name" />

      <result property="_address" resultMapping ="Person.addressResult"/>

</resultMap>

 

<resultMap id="addressResult" class ="Address">

      <result property="_type" column ="type" />

      <result property="_value" column ="value" />

</resultMap>

 

My error is : System.NullReferenceException: Object reference not set to an instance of an object.

 

 

Cheers,

Samnang


------=_Part_175690_2183041.1185372303962--