You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/es/markdown/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: Clinton Begin, Eduardo Macarron
7
7
8
8
### ¿Qué es MyBatis?
9
9
10
-
MyBatis es un framework de persistencia que soporta SQL, procedimientos almacenados y mapeos avanzados. MyBatis elimina casi todo el código JDBC, el establecimiento manual de parámetros y la obtención de resultados. MyBatis puede configurarse con XML o anotaciones y permite mapear typos de datos primitivos, objetos de tipo Map y POJOs (Plain Old Java Objects) a registros de base de datos.
10
+
MyBatis es un framework de persistencia que soporta SQL, procedimientos almacenados y mapeos avanzados. MyBatis elimina casi todo el código JDBC, el establecimiento manual de parámetros y la obtención de resultados. MyBatis puede configurarse con XML o anotaciones y permite mapear tipos de datos primitivos, objetos de tipo Map y POJOs (Plain Old Java Objects) a registros de base de datos.
@@ -304,11 +305,11 @@ public interface ResultHandler<T> {
304
305
305
306
<p>ResultContext파라미터는 결과 객체에 접근할 수 있도록 해준다.</p>
306
307
307
-
<p>Using a ResultHandler has two limitations that you should be aware of:</p>
308
+
<p>ResultHandler를 사용할 때 유의해야 할 제약사항이 2개 있다:</p>
308
309
309
310
<ul>
310
-
<li>Data got from an method called with a ResultHandler will not be cached.</li>
311
-
<li>When using advanced resultmaps MyBatis will probably require several rows to build an object. If a ResultHandler is used you may be given an object whose associations or collections are not yet filled.</li>
311
+
<li>ResultHandler를 사용하여 호출된 메소드의 데이터는 캐싱 되지 않는다.</li>
312
+
<li>고급 resualtMap을 사용할 경우, 마이바티스는 객체를 완성하기 위해 여러 줄의 코드를 필요로 할 수 있다. ResultHandler를 사용할 때 받는 객체는 associations나 collections가 완전히 채워지지 않은 상태일 수도 있다.</li>
312
313
</ul>
313
314
314
315
<h5>배치 수정시 flush메소드</h5>
@@ -750,36 +751,37 @@ class UserSqlBuilder {
750
751
}
751
752
}]]></source>
752
753
753
-
<p>This example shows usage that share an sql provider class to all mapper methods using global configuration(Available since 3.5.6):</p>
754
+
<p>이 예제는 모든 매퍼 메소드에 SQL 프로바이더 클래스를 전역 설정으로 공유하는 방법을 보여준다. (3.5.6 버전부터 사용 가능):</p>
754
755
<source><![CDATA[
755
756
Configuration configuration = new Configuration();
756
-
configuration.setDefaultSqlProviderType(TemplateFilePathProvider.class); // Specify an sql provider class for sharing on all mapper methods
757
+
configuration.setDefaultSqlProviderType(TemplateFilePathProvider.class); // 모든 mapper 메소드에 공유할 시, SQL 프로바이더 클래스를 지정한다.
757
758
// ...]]></source>
758
759
<source><![CDATA[
759
-
// Can omit the type/value attribute on sql provider annotation
760
-
// If omit it, the MyBatis apply the class that specified on defaultSqlProviderType.
760
+
// sql provider 애노테이션에서 type/value 속성을 생략할 수 있다.
761
+
// 생략시, 마이바티스는 defaultSqlProviderType으로 지정된 클래스를 적용한다.
761
762
public interface UserMapper {
762
763
763
-
@SelectProvider // Same with @SelectProvider(TemplateFilePathProvider.class)
764
+
@SelectProvider // @SelectProvider(TemplateFilePathProvider.class) 와 동일하다.
764
765
User findUser(int id);
765
766
766
-
@InsertProvider // Same with @InsertProvider(TemplateFilePathProvider.class)
767
+
@InsertProvider // @InsertProvider(TemplateFilePathProvider.class) 와 동일하다.
767
768
void createUser(User user);
768
769
769
-
@UpdateProvider // Same with @UpdateProvider(TemplateFilePathProvider.class)
770
+
@UpdateProvider // @UpdateProvider(TemplateFilePathProvider.class) 와 동일하다.
770
771
void updateUser(User user);
771
772
772
-
@DeleteProvider // Same with @DeleteProvider(TemplateFilePathProvider.class)
773
+
@DeleteProvider // @DeleteProvider(TemplateFilePathProvider.class) 와 동일하다.
773
774
void deleteUser(int id);
774
775
}]]></source>
775
776
776
-
<p>This example shows usage the default implementation of <code>ProviderMethodResolver</code>(available since MyBatis 3.5.1 or later):</p>
777
+
<p>이 예제는 <code>ProviderMethodResolver</code>의 기본 구현 사용법을 보여준다.(MyBatis 3.5.1 버전 이상부터 사용가능):</p>
0 commit comments