ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alden S" <alden...@hotmail.com>
Subject Re: Result Map Extends/
Date Mon, 27 Feb 2006 15:35:17 GMT
<html><div style='background-color:'><P><FONT face="Courier New">Hi,</FONT></P>
<P><FONT face="Courier New">I want to use org.apache.commons.beanutils.LazyDynaBean
for the resultClass but Ibatis does not allow me to. <BR><BR>&lt;select id="getBatParReport2"&nbsp;
parameterClass="java.lang.String" resultClass="org.apache.commons.beanutils.LazyDynaBean"&gt;
<BR><BR>I know i can use HashMap and then do <BR>&nbsp;&nbsp; org.apache.commons.beanutils.BeanUtils.copyProperties(bean,
map); <BR>which would be acceptable for queryForObject(..........) <BR><BR>but
if you do queryForList or queryForMap, then you have to write code to iterate over the map
or coolection and do&nbsp;&nbsp;&nbsp;&nbsp; org.apache.commons.beanutils.BeanUtils.copyProperties(bean,
map); <BR>which is a nuisance and redundant to copy the data from one object to another.
<BR>I use LazyBean or DynaBean bc i use trhem all over as java beans, also for when
i used the &lt;display:table tag. <BR><BR>Does 
ibatis provide this, or will it ever or never provide this. <BR><BR>Thanks <BR><BR>Alden.
</FONT></P></div></html>


Mime
View raw message