com.ibatis.common.beans.ProbeException: There is no READABLE property named XX ...
말 그대로 이름이 XX인 프로퍼티를 읽을 수가 없다는 말이다.
parameter 클래스나 맵에서 사용한 변수명과 쿼리문에 사용한 파라미터명이 같은지
확인한다.
2016년 4월 27일 수요일
2015년 1월 28일 수요일
Ibatis with ORA-1006 error, "bind variable doesn't exists"
Error : ORA-1006 error, "bind variable doesn't exists"
문제가 된 sql무니
<select id="id" parameterClass="hashmap">
Select something
From somewhere
Where case1
<dynamics>
<notnull prepend="and" property=value> columname like '%#value#%'
</dynamics>
원인 : 동적쿼리 작성하면서 변수를 #value#으로 선언
해결: $value$로 선언
##은 파라미터에 값을 대입
$$는 값을 쿼리문에 직접 입력
피드 구독하기:
글 (Atom)