@패키지명.클래스@메소드 형태로 호출이 가능합니다.
<select id="getUser" parameterType="map" resultType="hashmap">
SELECT * FROM TB_USER WHERE 1=1
<!-- @패키지.클래스명@호출할메소드(파라메터) -->
<if test="@net.communityddc.util.String@isEmpty(keyword)" >
AND KEYWORD = #{keyword}
</if>
https://stackoverflow.com/questions/24137304/converting-query-parameter-from-string-to-integer
https://github.com/mybatis/mybatis-3/issues/206
- 타입핸들러
http://blog.netchk.net/?p=1845
'mybatis' 카테고리의 다른 글
null, empty 문자 비교, boolean 비교 (0) | 2019.07.26 |
---|---|
myBatis java configuration (0) | 2018.12.20 |
mybatis 내장 cache (0) | 2018.11.15 |
쿼리에서 특정 문자 제거 (0) | 2016.10.27 |
mybatis 사이트 (0) | 2015.03.11 |