Skip to content

Commit c4f4868

Browse files
committed
typofix: change SqlSession to SqlSessionFactory
1 parent 3400192 commit c4f4868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)

0 commit comments

Comments
 (0)