Skip to content

Commit 4678bb0

Browse files
fixed some errors in documentation
fixed some errors in documentation
1 parent 58d46df commit 4678bb0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/site/xdoc/sqlmap-xml.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
The select statement is one of the most popular elements that you'll use in MyBatis.
8686
Putting data in a database isn't terribly valuable until you get it back out, so most
8787
applications query far more than they modify the data. For every insert, update or delete,
88-
there is probably many selects. This is one of the founding principles of MyBatis, and is the
88+
there are probably many selects. This is one of the founding principles of MyBatis, and is the
8989
reason so much focus and effort was placed on querying and result mapping. The select element is
9090
quite simple for simple cases. For example:
9191
</p>
@@ -541,7 +541,7 @@ ps.setInt(1,id);]]></source>
541541
<p>
542542
In all of the past statements, you've seen examples of simple parameters. Parameters are very
543543
powerful elements in MyBatis. For simple situations, probably 90% of the cases, there's not much
544-
too them, for example:
544+
to them, for example:
545545
</p>
546546

547547
<source><![CDATA[<select id="selectUsers" resultType="User">
@@ -552,7 +552,7 @@ ps.setInt(1,id);]]></source>
552552

553553
<p>
554554
The example above demonstrates a very simple named parameter mapping. The parameterType is set to
555-
<code>int</code>, so therefore the parameter could be named anything. Primitive or simply data types such as
555+
<code>int</code>, so therefore the parameter could be named anything. Primitive or simple data types such as
556556
<code>Integer</code> and <code>String</code> have no relevant properties, and thus will replace the full value of the
557557
parameter entirely. However, if you pass in a complex object, then the behavior is a little
558558
different. For example:
@@ -643,8 +643,8 @@ ps.setInt(1,id);]]></source>
643643
<p>
644644
By default, using the <code>#{}</code> syntax will cause MyBatis to generate <code>PreparedStatement</code> properties and
645645
set the values safely against the <code>PreparedStatement</code> parameters (e.g. ?). While this is safer,
646-
faster and almost always preferred, sometimes you just want to directly inject a string
647-
unmodified into the SQL Statement. For example, for ORDER BY, you might use something like this:
646+
faster and almost always preferred, sometimes you just want to directly inject an unmodified string
647+
into the SQL Statement. For example, for ORDER BY, you might use something like this:
648648
</p>
649649

650650
<source><![CDATA[ORDER BY ${columnName}]]></source>
@@ -731,7 +731,7 @@ public class User {
731731
</select>]]></source>
732732

733733
<p>
734-
And remember that TypeAliases are your friend. Use them so that you don't have to keep typing the
734+
And remember that TypeAliases are your friends. Use them so that you don't have to keep typing the
735735
fully qualified path of your class out. For example:
736736
</p>
737737

@@ -787,7 +787,7 @@ public class User {
787787
</select>]]></source>
788788

789789
<p>
790-
Now if only the world were always that simple.
790+
Now if only the world was always that simple.
791791
</p>
792792

793793
<h4>Advanced Result Maps</h4>
@@ -965,7 +965,7 @@ public class User {
965965
<result property="subject" column="post_subject"/>]]></source>
966966

967967
<p>
968-
These are the most basic of result mappings. Both <i>id</i>, and
968+
These are the most basic of result mappings. Both <i>id</i> and
969969
<i>result</i> map a single column value to a
970970
single property or field of a simple data type (String, int, double, Date, etc.).
971971
</p>

0 commit comments

Comments
 (0)