ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Lu <z...@umich.edu>
Subject dynamic sql map
Date Thu, 12 Jan 2006 13:05:29 GMT
Is this sql mapping works in the IBATIS?

<statement id="select_list" resultClass="domain.NameValue">
select $list_cols$
FROM $table_name$
</statement>

Map map = new HashMap(2);
       map.put("list_cols", "STATE_ABBRV, STATE");
       map.put("table_name", "USSTATE_DESC");

       return getSqlMapClientTemplate().queryForList(
                "select_list", map);

-Henry


Mime
View raw message