You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Michael McCurrey <mm...@digisolaz.com> on 2007/02/21 19:35:11 UTC

Using arrays in Parameter maps

Just curious if anybody else has attempted to use primative type arrays
within Parameter and/or Result Maps?

Something like this doesn't seem to work?

    <resultMap id="PropertyTypeResult" class="PropertyType" >
      <result property="PropertyTypeIDs" column="PropertyTypeIDs"
type="byte[]"/>
      <result property="Description" column="Description"/>
    </resultMap>


RE: Using arrays in Parameter maps

Posted by Ananth Rajarman - Clue Design <an...@cluedesign.com.au>.
Hi there!

Change the type from byte[] to byte and your code should work.

<... type="byte" />

In my code TimeStamp (SQLDBType) fields were mapped to Byte[] (CLR).

Cheers
Ananth


-----Original Message-----
From: Michael McCurrey [mailto:mmccurrey@digisolaz.com] 
Sent: Thursday, 22 February 2007 3:35 AM
To: user-cs@ibatis.apache.org
Subject: Using arrays in Parameter maps

Just curious if anybody else has attempted to use primative type arrays
within Parameter and/or Result Maps?

Something like this doesn't seem to work?

    <resultMap id="PropertyTypeResult" class="PropertyType" >
      <result property="PropertyTypeIDs" column="PropertyTypeIDs"
type="byte[]"/>
      <result property="Description" column="Description"/>
    </resultMap>