Skip to content

Commit 9bd1911

Browse files
authored
Merge pull request #1667 from donhui/0916-02
typofix: change SqlSession to SqlSessionFactory
2 parents 27f34bd + 5fdd4a5 commit 9bd1911

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/site/es/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<p>El interfaz principal para trabajar con MyBatis es el SqlSession. A través de este interfaz puedes ejecutar comandos, obtener mappers y gestionar transacciones. Hablaremos más sobre el propio SqlSession en breve, pero primero veamos cómo obtener una instancia de SqlSession. Las SqlSessions se crean por una instancia de SqlSessionFactory. La SqlSessionFactory contiene métodos para crear instancias de SqlSessions de distintas formas. La SqlSessionFactory en si misma se crea por la SqlSessionFactoryBuilder que puede crear una SqlSessionFactory a partir de XML, anotaciones o un objeto Configuration creado por código.</p>
6767
<p><span class="label important">NOTE</span> When using MyBatis with a dependency injection framework like Spring or Guice, SqlSessions are created and injected by the DI framework so you don't need to use the SqlSessionFactoryBuilder or SqlSessionFactory and can go directly to the SqlSession section. Please refer to the MyBatis-Spring or MyBatis-Guice manuals for further info.</p>
6868
<h4>SqlSessionFactoryBuilder</h4>
69-
<p>El SqlSessionFactoryBuilder tiene cinco métodos build(), cada cual permite construir una SqlSession desde un origen distinto.</p>
69+
<p>El SqlSessionFactoryBuilder tiene cinco métodos build(), cada cual permite construir una SqlSessionFactory desde un origen distinto.</p>
7070
<source>SqlSessionFactory build(InputStream inputStream)
7171
SqlSessionFactory build(InputStream inputStream, String environment)
7272
SqlSessionFactory build(InputStream inputStream, Properties properties)

src/site/ja/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<p>MyBatis の最も良く使う Java インターフェイスは SqlSession です。コマンドの実行、Mapper の取得、トランザクション管理はこのインターフェイスを通して行うことができます。SqlSession については、後で詳しく説明しますが、その前に SqlSession のインスタンスを取得する方法について学ばなくてはなりません。SqlSession は SqlSessionFactory のインスタンスによって作成されます。SqlSessionFactory には、様々な方法で SqlSession を作成するメソッドが含まれています。SqlSessionFactory 自身は SqlSessionFactoryBuilder によって作られますが、作成される SqlSessionFactory は XML、アノテーション、ハードコードされた Java コンフィグレーションのいずれかの方法で設定することができます。</p>
6767
<p><span class="label important">NOTE</span> MyBatis を Spring や Guice といった依存性注入(DI = Dependency Injection)フレームワークと組み合わせて使う場合、SqlSession は DI フレームワークによって作成・注入されます。SqlSessionFactoryBuilder や SqlSessionFactory を使う必要はありませんので、SqlSession の章まで飛ばして構いません。DIフレームワークとの組み合わせについては MyBatis-Spring および MyBatis-Guice のマニュアルを参照してください。</p>
6868
<h4>SqlSessionFactoryBuilder</h4>
69-
<p>SqlSessionFactoryBuilder には5つの build() メソッドがあり、それぞれ異なるソースから SqlSession をビルドすることができるようになっています。</p>
69+
<p>SqlSessionFactoryBuilder には5つの build() メソッドがあり、それぞれ異なるソースから SqlSessionFactory をビルドすることができるようになっています。</p>
7070
<source>SqlSessionFactory build(InputStream inputStream)
7171
SqlSessionFactory build(InputStream inputStream, String environment)
7272
SqlSessionFactory build(InputStream inputStream, Properties properties)

src/site/ko/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
추가적인 정보는 MyBatis-Spring이나 MyBatis-Guice를 참고하길 바란다. </p>
8484
<h4>SqlSessionFactoryBuilder</h4>
8585
<p>SqlSessionFactoryBuilder는 5개의 build() 메소드를 가진다.
86-
각각은 서로 다른 소스에서 SqlSession을 빌드한다.</p>
86+
각각은 서로 다른 소스에서 SqlSessionFactory을 빌드한다.</p>
8787
<source>SqlSessionFactory build(InputStream inputStream)
8888
SqlSessionFactory build(InputStream inputStream, String environment)
8989
SqlSessionFactory build(InputStream inputStream, Properties properties)

src/site/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<p>The primary Java interface for working with MyBatis is the SqlSession. Through this interface you can execute commands, get mappers and manage transactions. We'll talk more about SqlSession itself shortly, but first we have to learn how to acquire an instance of SqlSession. SqlSessions are created by a SqlSessionFactory instance. The SqlSessionFactory contains methods for creating instances of SqlSessions all different ways. The SqlSessionFactory itself is created by the SqlSessionFactoryBuilder that can create the SqlSessonFactory from XML, Annotations or hand coded Java configuration.</p>
6666
<p><span class="label important">NOTE</span> When using MyBatis with a dependency injection framework like Spring or Guice, SqlSessions are created and injected by the DI framework so you don't need to use the SqlSessionFactoryBuilder or SqlSessionFactory and can go directly to the SqlSession section. Please refer to the MyBatis-Spring or MyBatis-Guice manuals for further info.</p>
6767
<h4>SqlSessionFactoryBuilder</h4>
68-
<p>The SqlSessionFactoryBuilder has five build() methods, each which allows you to build a SqlSession from a different source.</p>
68+
<p>The SqlSessionFactoryBuilder has five build() methods, each which allows you to build a SqlSessionFactory from a different source.</p>
6969
<source>SqlSessionFactory build(InputStream inputStream)
7070
SqlSessionFactory build(InputStream inputStream, String environment)
7171
SqlSessionFactory build(InputStream inputStream, Properties properties)

src/site/zh/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<p>
7171
<span class="label important">注意</span> 当 Mybatis 与一些依赖注入框架(如 Spring 或者 Guice)同时使用时,SqlSessions 将被依赖注入框架所创建,所以你不需要使用 SqlSessionFactoryBuilder 或者 SqlSessionFactory,可以直接看 SqlSession 这一节。请参考 Mybatis-Spring 或者 Mybatis-Guice 手册了解更多信息。</p>
7272
<h4>SqlSessionFactoryBuilder</h4>
73-
<p>SqlSessionFactoryBuilder 有五个 build() 方法,每一种都允许你从不同的资源中创建一个 SqlSession 实例。</p>
73+
<p>SqlSessionFactoryBuilder 有五个 build() 方法,每一种都允许你从不同的资源中创建一个 SqlSessionFactory 实例。</p>
7474
<source>SqlSessionFactory build(InputStream inputStream)
7575
SqlSessionFactory build(InputStream inputStream, String environment)
7676
SqlSessionFactory build(InputStream inputStream, Properties properties)

0 commit comments

Comments
 (0)