일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 자바배열
- 행 병합
- html
- 쿼리변환
- jsp화면출력
- 논리구조
- html논리
- 자바구구단
- 자바
- javaarray
- DOCTYPE 선언
- 커밋복원
- while문
- Eclipse
- Array
- 그리드 속성
- 배열선언
- jqgrid 속성
- html논리태그
- for문
- 소스복원
- 논리태그
- 반복문
- Java
- html5버전
- 소스되돌리기
- 자바기초
- 자바를잡아
- 정수배열
- 자바반복문
Archives
- Today
- Total
hyebong_e
iBatis를 myBatis로 변환할 때.. 본문
728x90
반응형
SMALL
다들 소스를 보다보면 필요한 때에 따라 iBatis를 myBatis로 변환이 필요할때가 있을 것 이다.
나도 처음엔 많이 헷갈렸었던 문법인데 ... 다들 참고만 하고 필요에 따라 적용 해보자.
example..
쿼리 name값 | |
#s_date_type# | #{s_date_type} |
<isNotEmpty property="s_date_type"> </isNotEmpty> | <if test="s_date_type != '' " and s_date_type != null> </if> |
<isEmpty property="s_date_type"> </isEmpty> | <if test="s_date_type == '' " and s_date_type == null> </if> |
<isEqual property="s_date_type" compareValue="Y"> </isEqual > |
<if test="s_date_type == 'Y' "> </if> |
<if test = " ">로 통일 하여 비교연산자를 사용해서 간단하게 표현 할 수 있다.
반응형
LIST
Comments