ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samnang Chhun <samnang.ch...@gmail.com>
Subject Constuctor with GroupBy Problem
Date Wed, 25 Jul 2007 09:27:29 GMT


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">


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


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

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



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

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

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



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





View raw message