Last Updated: February 25, 2016
·
2.371K
· terukizm

get sorted ResultMap on iBatis

use LInkedHashMap.

sql.xml
< select id="selectAllByColumnSorted" resultClass="java.util.LinkedHashMap" parameterClass="String" remapResults="true">

select * from $value$

< / select >