ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nic Smith" <nsm...@boardbooks.com>
Subject Passing a custom class type + additional data
Date Thu, 19 Jul 2007 02:43:33 GMT
Hi,

 

Is it possible to pass in user defined types  as well as additional data
types in a Map. For example:

 

------

<select id="SelectDocument" parameterClass="map"
resultMap="DocumentResult">

 

I want the map to contain a type of "Document" (a class in our .Net
code), as well as an int[].

 

So, the key value pairs would be: 

document, {object type of Document}

groups, {int[]}

 

Can I then in my SQL statement write something like this?

UPDATE

   [DocumentTable]

SET

   Id = #document.Id#, 

   Name = #document.ShortName# 

WHERE

   GroupId IN

   <iterate property=" groups" open="(" close=")" conjunction=",">

 # groups[]#

 </iterate>

 

If this isn't the case? Is there some other way that I can do this?

 

Cheers,
Nic


Mime
View raw message