나의 성장과정  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
[iBatis]uncategorized SQLException

iBatis를 이용하여 DB에 연동할 경우 uncategorized SQLException 이 발생할 때가 있다.

parameter 가 모두 setting되었음에도 불구하고  에러가 발생 할때가 있는데 이 이유는
자바코드와 실제 Query 가 정의된 XML 문에서 일치하지 않기 때문이다.

Case 1.

queryForList("보람뇌구조업데이트하기", "공부.iBatis");

<update id="보람뇌구조업데이트하기" parameterClass="공부">
   update     보람
   set           보람뇌 = #iBatis#
   where      보람뇌 = '남친님생각'
</update>

 -> update 구문에 queryForList의 조합

Case 2.
queryForList로 불러야 할 것을 queryForObject 로 사용할때
 



BLOG main image
Simple is beatiful!
 Notice
 Category
분류 전체보기 (755)
전직 (0)
일상 (7)
진행중 (6)
3Fs (14)
미정 (3)
Serendipitous! (6)
지르자 : 맥북 (5)
(5)
FaceBook (3)
 TAGS
color 커피 tomcat Safari Eclipse Debug 네트워크 Java DOM CP1215 JavaScript laserjet 사파리 자바스크립트 primitive 접근지정자 HP URL URLConnection JS
 Calendar
«   2024/04   »
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
 Recent Entries
 Recent Comments
 Archive
 Link Site
상상할 수 있는 힘이 ..
즐겁게살자
인생의 소중한 꿈
{fly to the ocean.com}
누노의 컴퓨토피아
한RSS
[지인]I can\'t stop. Love. Lo…
[원츄]OK 괜찮아 다 잘 될거야
[원츄]애자일 이야기
[원츄]IBM Developerworks
 Visitor Statistics
Total :
Today :
Yesterday :
rss