You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Ou, Stan (Mission Systems)" <ST...@ngc.com> on 2006/10/28 00:40:04 UTC
How can I set resultmap or resultclass to be dynamic?
Hi,
Is it possible to do something like this in iBatis?
<select id="getLookupTable" parameterClass="java.lang.String"
resultMap="pass-in-at-runtime" >
select * from $value$
</select>
In my dao, I would like to do something like this:
queryForObject("getLookupTable", "lookuptable1");
queryForObject("getLookupTable", "lookuptable2");
I have the pojo's for the lookup tables but how I can pass it to iBatis
as a parameter to the resultMap? Thx
Stan