Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/site/es/xdoc/batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<subsection name="MyBatisPagingItemReader">
<p>
Este bean es un <code>IteamReader</code> que lee registros de una base de datos usando paginación.
Este bean es un <code>ItemReader</code> que lee registros de una base de datos usando paginación.
</p>

<p>
Expand Down Expand Up @@ -155,7 +155,7 @@ public Map<String, Object> datesParameters(

<subsection name="MyBatisCursorItemReader">
<p>
Este bean es un <code>IteamReader</code> que lee registros de la base de datos usando un cursor.
Este bean es un <code>ItemReader</code> que lee registros de la base de datos usando un cursor.
</p>

<p>
Expand Down
2 changes: 1 addition & 1 deletion src/site/ja/xdoc/batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public Map<String, Object> datesParameters(

<subsection name="MyBatisCursorItemReader">
<p>
This bean is an <code>IteamReader</code> that reads records from a database using a cursor.
This bean is an <code>ItemReader</code> that reads records from a database using a cursor.
</p>

<p>
Expand Down
24 changes: 11 additions & 13 deletions src/site/ko/xdoc/batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
<p>
마이바티스 스프링 연동모듈의 1.1.0버전에서는 스프링 배치 애플리케이션을 만들기 위해 두개의 빈을 제공한다.
두개의 빈은 <code>MyBatisPagingItemReader</code> 와 <code>MyBatisCursorItemReader</code> 와 <code>MyBatisBatchItemWriter</code>이다.
Also, As of version 2.0.0 provides three builder classes for supporting the Java Configuration: the <code>MyBatisPagingItemReaderBuilder</code>,
the <code>MyBatisCursorItemReaderBuilder</code> and the <code>MyBatisBatchItemWriterBuilder</code>.

또한 2.0.0 버전에서는 Java Configuration 을 지원하는 다음의 세 가지 Builder class 를 제공한다.
<code>MyBatisPagingItemReaderBuilder</code>, <code>MyBatisCursorItemReaderBuilder</code> 그리고 <code>MyBatisBatchItemWriterBuilder</code> 이다.
</p>

<p><span class="label important">중요</span> 이 문서는 <a href="http://static.springsource.org/spring-batch/">스프링 배치</a>에 대한 것으로
마이바티스 배치 SqlSession을 다루지는 않는다. 배치 세션에 대해서는 <a href="sqlsession.html">SqlSession 사용</a>에서 좀더 다루었다. </p>

<subsection name="MyBatisPagingItemReader">
<p>이 빈은 마이바티스로 페이지를 처리하는 형태로 데이터베이스 데이터를 읽어오는 <code>IteamReader</code>이다. </p>
<p>이 빈은 마이바티스로 페이지를 처리하는 형태로 데이터베이스 데이터를 읽어오는 <code>ItemReader</code>이다. </p>

<p>요청된 데이터를 가져오기 위해 <code>setQueryId</code> 프로퍼티에 명시된 쿼리를 실행한다.
쿼리는 <code>setPageSize</code> 프로퍼티에 명시된 크기만큼 데이터를 가져오도록 실행된다.
Expand Down Expand Up @@ -140,31 +141,28 @@ public Map<String, Object> datesParameters(

<subsection name="MyBatisCursorItemReader">
<p>
This bean is an <code>IteamReader</code> that reads records from a database using a cursor.
이 빈은 cursor 를 사용하여 데이터베이스에서 레코드를 읽는 <code>ItemReader</code> 이다.
</p>

<p>
<span class="label important">NOTE</span> To use this bean you need at least MyBatis 3.4.0 or a newer version.
<span class="label important">중요</span> 이 빈을 사용하려면 최소한 MyBatis 3.4.0 이나 그 이상이어야 한다.
</p>

<p>
It executes the query specified as the <code>setQueryId</code> property to retrieve requested data
by using the method <code>selectCursor()</code>.
Each time a <code>read()</code> method is called it will return the next element of the cursor until no more
elements are left.
<code>setQueryId</code> 속성으로 지정된 쿼리를 실행하여 <code>selectCursor()</code> 메서드를 사용하여 요청 된 데이터를 검색한다.
<code>read()</code> 메서드가 호출 될 때마다 요소가 더 이상 남아 있지 않을 때까지 cursor 의 다음 요소를 반환한다.
</p>

<p>
The reader will use a separate connection so the select statement does no participate in any transactions created
as part of the step processing.
reader 는 별도의 connection 을 사용하므로 select 문은 step processing 일부로 생성된 트랜잭션에 속하지 않는다.
</p>

<p>When using the cursor you can just execute a regular query:</p>
<p>cursor 를 사용할 때 다음과 같이 일반 쿼리를 실행할 수 있다.</p>
<source><![CDATA[<select id="getEmployee" resultMap="employeeBatchResult">
SELECT id, name, job FROM employees ORDER BY id ASC
</select>]]></source>

<p>Follows below a sample configuration snippet:</p>
<p>아래는 샘플 설정이다.</p>

<source><![CDATA[<bean id="reader" class="org.mybatis.spring.batch.MyBatisCursorItemReader">
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
Expand Down
6 changes: 3 additions & 3 deletions src/site/ko/xdoc/boot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
</properties>

<body>
<section name="Using Spring Boot">
<section name="스프링 부트 사용하기">
<p>
Please see the <a href="http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure">MyBatis Spring-boot-stater</a>
subproject docs for details.
자세한 내용은 <a href="http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure">MyBatis Spring-boot-stater</a>
하위 프로젝트 문서를 참조하십시오.
</p>
</section>
</body>
Expand Down
13 changes: 6 additions & 7 deletions src/site/ko/xdoc/factorybean.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<p>마이바티스만 사용하면, <code>SqlSessionFactory</code>는 <code>SqlSessionFactoryBuilder</code>를 사용해서 생성한다.
마이바티스 스프링 연동모듈에서는, <code>SqlSessionFactoryBean</code>가 대신 사용된다. </p>

<subsection name="Setup">
<subsection name="설정">
<p>팩토리 빈을 생성하기 위해, 스프링 XML설정파일에 다음설정을 추가하자. </p>
<source><![CDATA[
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
Expand All @@ -54,7 +54,7 @@ public SqlSessionFactory sqlSessionFactory() {
대신 세션 팩토리가 <code>MapperFactoryBean</code>나 <code>SqlSessionDaoSupport</code>를 확장하는 다른 DAO에 주입될것이다. </p>
</subsection>

<subsection name="Properties">
<subsection name="속성">

<p><code>SqlSessionFactory</code>는 JDBC <code>DataSource</code>의 필수 프로퍼티가 필요하다.
어떤 <code>DataSource</code>라도 상관없고 다른 스프링 데이터베이스 연결처럼 설정되어야만 한다. </p>
Expand All @@ -65,7 +65,7 @@ public SqlSessionFactory sqlSessionFactory() {

<p>설정파일이 마이바티스 설정을 완전히 다룰 필요는 없다.
어떤 환경, 어떤 데이터소스 그리고 마이바티스 트랜잭션 관리자가 <b>무시</b>될수도 있다.
<code>SqlSessionFactoryBean</code> creates its own, custom MyBatis <code>Environment</code> with these values set as required. </p>
<code>SqlSessionFactoryBean</code> 는 필요에 따라 이 값들을 설정하여 자체적인 MyBatis <code>Environment</code> 를 만든다. </p>

<p>설정파일이 필요한 다른 이유는 마이바티스 XML파일이 매퍼 클래스와 동일한 클래스패스에 있지 않은 경우이다.
이 설정을 사용하면 두가지 옵션이 있다.
Expand All @@ -89,7 +89,7 @@ public SqlSessionFactory sqlSessionFactory() {
이에 관련해서는 트랜잭션을 다루는 장에서 볼수 있다. </p>

<p>
In case you are using the multi-db feature you will need to set the <code>databaseIdProvider</code> property:
만약 multi-db 기능을 사용한다면 다음과 같이 <code>databaseIdProvider</code> 속성을 설정해야 한다.
</p>

<source><![CDATA[
Expand All @@ -112,9 +112,8 @@ public SqlSessionFactory sqlSessionFactory() {

<p>
<span class="label important">NOTE</span>
Since 1.3.0, <code>configuration</code> property has been added.
It can be specified a <code>Configuration</code> instance directly without MyBatis XML configuration file.
For example:
1.3.0 버전 부터 <code>configuration</code> 속성이 추가되었다.
다음과 같이 MyBatis XML 설정 파일없이 <code>Configuration</code> 인스턴스를 직접 지정할 수 있습니다.
</p>

<source><![CDATA[
Expand Down
8 changes: 4 additions & 4 deletions src/site/ko/xdoc/getting-started.xml.vm
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
</properties>

<body>
<section name="Getting Started">
<section name="시작하기">
<p>이 장은 마이바티스 스프링 연동모듈을 설치하고 셋팅하는 방법에 대해 간단히 보여준다.
그리고 트랜잭션을 사용하는 간단한 애플리케이션을 만드는 방법까지 다룰 것이다. </p>

<subsection name="Installation">
<subsection name="설치">
<p>마이바티스 스프링 연동모듈을 사용하기 위해서, 클래스패스에 <code>mybatis-spring-${project.version}.jar</code>를 포함시켜야 한다. </p>
<p>메이븐을 사용하고 있다면 pom.xml에 다음처럼 의존성을 추가하면 된다. </p>
<source><![CDATA[
Expand All @@ -42,7 +42,7 @@
</dependency>]]></source>
</subsection>

<subsection name="Quick Setup">
<subsection name="빠른 설정">
<p>마이바티스를 스프링과 함께 사용하려면 스프링의 애플리케이션 컨텍스트에 적어도 두개를 정의해줄 필요가 있다.
두가지는 <code>SqlSessionFactory</code>와 한개 이상의 매퍼 인터페이스이다. </p>

Expand Down Expand Up @@ -88,7 +88,7 @@ public SqlSessionFactoryBean sqlSessionFactory() throws Exception {
마지막으로 예외가 발생하면 스프링의 <code>DataAccessException</code>예외가 발생한다. </p>

<p>
If you use the Java Configuration:
자바로 설정하면 다음과 같다.
</p>

<source><![CDATA[
Expand Down
18 changes: 9 additions & 9 deletions src/site/ko/xdoc/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
</properties>

<body>
<section name="Introduction">
<subsection name="What is MyBatis-Spring?">
<section name="소개">
<subsection name="MyBatis-Spring 은 무엇일까?">
<p>마이바티스 스프링 연동모듈은 마이바티스와 스프링을 편하고 간단하게 연동한다.
이 모듈은 마이바티스로 하여금 스프링 트랜잭션에 쉽게 연동되도록 처리한다.
게다가 마이바티스 매퍼와 <code>SqlSession</code>을 다루고 다른 빈에 주입시켜준다.
마이바티스 예외를 스프링의 <code>DataAccessException</code>로 변환하기도 하고 마이바티스, 스프링 또는 마이바티스 스프링 연동모듈에 의존성을 없애기도 한다. </p>
</subsection>

<subsection name="Motivation">
<subsection name="동기 부여">
<p>스프링 2.x은 아이바티스 2.x만을 지원한다.
스프링 3.x에서 마이바티스 3.x를 지원하기 위한 시도가 진행중이다.
(스프링의 이슈관리 시스템인 <a href="https://jira.springsource.org/browse/SPR-5991">이슈</a> 를 보라.)
Expand All @@ -46,7 +46,7 @@
마이바티스 커뮤니티는 재결합하는 형태로 결정을 내고 대신 마이바티스의 하위 프로젝트 형태로 스프링 연동 프로젝트를 추가한다. </p>
</subsection>

<subsection name="Requirements">
<subsection name="필요 조건">
<p>마이바티스 스프링 연동을 시작하기 전에, 마이바티스와 스프링의 용어를 맞추는 일이 굉장히 중요했다.
이 문서는 배경지식이나 기본적인 셋업방법 그리고 마이바티스와 스프링의 설정에 대한 튜토리얼등은 제공하지 않는다. </p>
<p>
Expand Down Expand Up @@ -111,25 +111,25 @@
</table>
</subsection>

<subsection name="Acknowledgements">
<subsection name="감사 인사">
<p>이 프로젝트가 실제로 만들어지게 도와준 모든 특별한 분들에게 정말 감사한다.
알파벳 순서로 보면, 코딩및 테스트 그리고 문서화를 담당했던 Eduardo Macarron, Hunter Presnall, Putthiphong Boonphong;
그외 다양한 프로젝트 기여자인 Andrius Juozapaitis, Giovanni Cuccu, Mike Lanyon, Raj Nagappan, Tomas Pinos;
그리고 마이바티스에 하위 프로젝트로 가져올수 있도록 많은 것을 찾아준 Simone Tripodi 에게 감사한다. ;)
이들이 없었다면 이 프로젝트는 존재하지 않았을 것이다. </p>
</subsection>

<subsection name="Help make this documentation better…">
<subsection name="이 문서가 더 나아지도록 도와주세요…">
<p>만약에 어떤 방법으로든 이 문서의 취약점이 발견되거나 기능에 대한 문서화가 빠진 부분이 보인다면,
가장 좋은 방법은 먼저 공부해서 자신만의 문서를 작성하는 것이다.
</p>
<p>이 문서의 원본은 xdoc포맷이며 <a href="https://github.com/mybatis/spring/tree/master/src/site">프로젝트의 Git</a>에서 찾을 수 있다.
저장소를 포크입니다, 를 업데이트합니다, 그리고 풀 요청을 보냅니다.
repository 를 fork 하고, 업데이트하고 pull request 를 보내주십시오.
</p>
<p>당신처럼 이 문서를 읽는 사람들에게 이 문서의 최고의 저자가 될수 있다! </p>
</subsection>

<subsection name="Translations">
<subsection name="번역">
<p>사용자들은 다음의 번역문서별로 마이바티스 스프링 연동모듈에 대해 알수 있다. </p>
<ul class="i18n">
<li class="en"><a href="./../index.html">English</a></li>
Expand All @@ -141,7 +141,7 @@
<p>위 번역문서에는 없지만 자국의 언어로 문서로 보고 싶다면, 자국의 언어로 된 문서를 만들어서 우리에게 보내달라. </p>
</subsection>

<subsection name="Translator">
<subsection name="번역자">
<p>번역자 : 이동국(fromm0@gmail.com, http://ldg.pe.kr, https://www.facebook.com/dongguk.lee.3) </p>
</subsection>
</section>
Expand Down
6 changes: 3 additions & 3 deletions src/site/ko/xdoc/mappers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</properties>

<body>
<section name="Injecting Mappers">
<section name="매퍼 주입">
<p>데이터 접근 객체인 DAO를 만든것보다 직접 <code>SqlSessionDaoSupport</code> 나 <code>SqlSessionTemplate</code> 를 사용하자.
마이바티스 스프링 연동모듈은 다른 빈에 직접 주입할 수 있는 쓰레드에 안전한 매퍼를 생성할 수 있다. </p>

Expand All @@ -53,7 +53,7 @@
게다가 세션을 생성하거나 열고 닫을필요도 없어보인다.
마이바티스 스프링 연동모듈이 알아서 처리할 것이다. </p>

<subsection name="Registering a mapper" id="register">
<subsection name="매퍼 등록하기" id="register">
<p>매퍼를 등록하는 방법은 기존의 전통적인 XML설정법을 사용하거나 새로운 3.0 이후의 자바설정(일명 @Configuration)을 사용하느냐에 따라 다르다. </p>

<h4>XML설정 사용</h4>
Expand Down Expand Up @@ -89,7 +89,7 @@ public UserMapper userMapper() throws Exception {
대신 샘플코드에서 보여주는 것처럼 <code><a href="sqlsession.html#SqlSessionTemplate">SqlSessionTemplate</a></code> 를 사용해야만 한다. </p>
</subsection>

<subsection name="Scanning for mappers" id="scan">
<subsection name="매퍼 스캔" id="scan">
<p>하나씩 매퍼를 모두 등록할 필요가 없다.
대신 클래스패스를 지정해서 마이바티스 스프링 연동모듈의 자동스캔기능을 사용할 수 있다. </p>

Expand Down
Loading