사용자 도구

사이트 도구


wiki:spring:mybatis

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
wiki:spring:mybatis [2020/04/01 18:39]
dhan
wiki:spring:mybatis [2023/01/13 18:44] (현재)
줄 18: 줄 18:
  
 UPDATE 예시 UPDATE 예시
-<code>+<code xml>
     <update id="readCount" parameterType="int">     <update id="readCount" parameterType="int">
         update tbl_board set count = count + 1 where seq = #{seq}         update tbl_board set count = count + 1 where seq = #{seq}
줄 57: 줄 57:
 </code> </code>
  
-[[http://www.mybatis.org/mybatis-3/ko/sqlmap-xml.html|Mapper XML 파일]]+[[http://www.mybatis.org/mybatis-3/ko/sqlmap-xml.html|Mapper XML 파일]] \\ 
 +[[https://taetaetae.github.io/2017/04/04/mybatis-useGeneratedKeys/|mybatis insert/update 쿼리실행후 결과 가져오기]] \\
  
-[[https://taetaetae.github.io/2017/04/04/mybatis-useGeneratedKeys/|mybatis insert/update 쿼리실행후 결과 가져오기]]+===== 동적 쿼리 ===== 
 +[[http://blog.naver.com/roropoly1/221184569655|myBatis parameterType="String" 일 때 동적쿼리에서 사용]]
  
 +===== 배치(Batch) 입력/수정 =====
 +[[https://vivi-world.tistory.com/13|[Mybatis/MariaDB] foreach 구문을 이용해서 Insert 대량 삽입하기]] \\
 +[[https://baejangho.com/entry/Java-Mybatis-Batch-Insert|[Java / Mybatis] 일괄(Batch) 입력/수정(Insert/Update)]] \\
  
-===== Mybatis에서 Null체크 (ibatis와 비교) =====+===== choose ===== 
 +[[https://kmhan.tistory.com/43|[Mybatis] if else문 대체하는 방법]] \\ 
 + 
 +===== Null체크 (ibatis와 비교) =====
 >Mybatis >Mybatis
 <code xml> <code xml>
줄 79: 줄 87:
 [[https://web-obj.tistory.com/246|ibatis to mybatis 전자정부프레임워크]] \\ [[https://web-obj.tistory.com/246|ibatis to mybatis 전자정부프레임워크]] \\
 [[https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte2:psl:dataaccess:mybatisguide|MyBatis 적용 가이드]] \\ [[https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte2:psl:dataaccess:mybatisguide|MyBatis 적용 가이드]] \\
 +
 +
  
  
 ===== ResultHandler ===== ===== ResultHandler =====
-[[https://kongeebol.tistory.com/2|[Excel POI] Mybatis ResultHandler 사용하여 대용량 데이터 추출]]+[[https://kongeebol.tistory.com/2|[Excel POI] Mybatis ResultHandler 사용하여 대용량 데이터 추출]] \\ 
 + 
 +===== ResultType & ResultMap ===== 
 +[[https://dorongdogfoot.tistory.com/124|[MyBatis] resultMap 과 resultType (resultClass) 의 차이점]] \\ 
 + 
 +===== Test ===== 
 +[[https://sinpk.tistory.com/entry/Mybatis-if-%EB%AC%B8%EC%9E%90%EC%97%B4-%EB%B9%84%EA%B5%90|Mybatis if 문자열 비교]] \\ 
 +[[https://madnix.tistory.com/entry/%EB%A7%88%EC%9D%B4%EB%B0%94%ED%8B%B0%EC%8A%A4%EB%8A%94-%EB%8F%99%EC%A0%81-%EC%BF%BC%EB%A6%AC%EB%AC%B8-%EC%83%9D%EC%84%B1%EC%97%90-%EC%82%AC%EC%9A%A9%EB%90%98%EB%8A%94-if-%EA%B5%AC%EC%84%B1-%EC%9A%94%EC%86%8C%EB%A5%BC-%EC%A0%9C%EA%B3%B5|마이바티스는 동적 쿼리문 생성에 사용되는 <if /> 구성 요소를 제공...]]
  
 ===== Tip ===== ===== Tip =====
줄 102: 줄 119:
 > maxWait - 풀에 사용 가능할 연결이 없을때 대기하는 최대 시간을 밀리초 단위로 나타냅니다. 이 대기시간후에도 사용 가능한 연결이 없으면 예외를 발생합니다. -1은 무한대기를 나타냅니다. 기본값은 -1입니다. > maxWait - 풀에 사용 가능할 연결이 없을때 대기하는 최대 시간을 밀리초 단위로 나타냅니다. 이 대기시간후에도 사용 가능한 연결이 없으면 예외를 발생합니다. -1은 무한대기를 나타냅니다. 기본값은 -1입니다.
  
-===== Trouble shooting =====+===== Troubleshooting =====
 DAO에서 보낸 VO가 SQL에서 값이 사라져 버릴 경우 DAO에서 보낸 VO가 SQL에서 값이 사라져 버릴 경우
 > 긴장하지 말고 pom.xml에서 mybatis, mybatis-spring 버전 업데이트 하면 해결이 됩니다.  > 긴장하지 말고 pom.xml에서 mybatis, mybatis-spring 버전 업데이트 하면 해결이 됩니다. 
/volume1/web/dokuwiki/data/attic/wiki/spring/mybatis.1585733968.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)