HashMap<String, String> map1 = new HashMap<String, String>();
map1 .put("test1", "111");
map1 .put("test2", "222");
List<TVO> list = TDAO.getList(map1 );
=>
public List<TVO > getList(HashMap<String, String> map1 ) {
return getSqlMapClientTemplate().queryForList("getList", map1 );
}
=> XML
<select id="getList" resultMap="??Result" parameterClass="java.util.Map">
<isNotEmpty property="test1">
</isNotEmpty>
<isNotEmpty property="test2">
</isNotEmpty>
</select>
'JAVA OPEN API' 카테고리의 다른 글
[ibatis] if else 처리, null 처리 (0) | 2013.08.22 |
---|---|
[ibatis] 여러개 resultMap 과 groupBy 사용 예제 (0) | 2013.08.22 |
[POI] RecordFormatException: Unable to construct record instance 오류 (0) | 2013.07.02 |
[POI] Excel 읽고 쓰기 (0) | 2013.07.02 |
sitemesh.xml 설정 (0) | 2013.06.19 |