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

Reply via email to