ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ou, Stan \(Mission Systems\)" <STAN...@ngc.com>
Subject How can I set resultmap or resultclass to be dynamic?
Date Fri, 27 Oct 2006 22:40:04 GMT
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


Mime
View raw message