Skip to content

Commit b6f3f0f

Browse files
authored
Merge pull request #60 from Sicaine/patch-1
fix typos in select.md
2 parents 3b09b51 + 00e82b0 commit b6f3f0f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/site/markdown/docs/select.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ The library supports the generation of equijoin statements - joins defined by co
4747
.render(RenderingStrategy.MYBATIS3);
4848
```
4949

50-
Notice that you can give an alias to a tables if desired. If you don't specify an alias, the full table name wil be used in the generated SQL.
50+
Notice that you can give an alias to a table if desired. If you don't specify an alias, the full table name will be used in the generated SQL.
5151

52-
Multiple tables can be joined in a single statement. For example:
52+
Multiple tables can be joined in a single statement. For example:
5353

5454
```java
5555
SelectStatementProvider selectStatement = select(orderMaster.orderId, orderDate, orderLine.lineNumber, itemMaster.description, orderLine.quantity)
@@ -60,7 +60,7 @@ Multiple tables can be joined in a single statement. For example:
6060
.build()
6161
.render(RenderingStrategy.MYBATIS3);
6262
```
63-
Join queries will likely require you to define a MyBatis result mapping in XML. This is the only instance where XML is required. This is due to the limitations of the MyBatis annotations when mapping collections.
63+
Join queries will likely require you to define a MyBatis result mapping in XML. This is the only instance where XML is required. This is due to the limitations of the MyBatis annotations when mapping collections.
6464

6565
The library supports four join types:
6666

@@ -70,7 +70,7 @@ The library supports four join types:
7070
4. `.fullJoin(...)` is a FULL OUTER join
7171

7272
## Union Queries
73-
The library supports the generation of UNION and UNION ALL queries. For example:
73+
The library supports the generation of UNION and UNION ALL queries. For example:
7474

7575
```java
7676
SelectStatementProvider selectStatement = select(id, animalName, bodyWeight, brainWeight)
@@ -83,11 +83,11 @@ The library supports the generation of UNION and UNION ALL queries. For example
8383
.render(RenderingStrategy.MYBATIS3);
8484
```
8585

86-
Any number of SELECT statements can be added to a UNION query. Only one ORDER BY phrase is allowed.
86+
Any number of SELECT statements can be added to a UNION query. Only one ORDER BY phrase is allowed.
8787

8888
## Annotated Mapper for Select Statements
8989

90-
The SelectStatementProvider object can be used as a parameter to a MyBatis mapper method directly. If you
90+
The SelectStatementProvider object can be used as a parameter to a MyBatis mapper method directly. If you
9191
are using an annotated mapper, the select method should look like this (note that we recommend coding a "selectMany" and a "selectOne" method with a shared result mapping):
9292

9393
```java
@@ -117,7 +117,7 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
117117

118118
## XML Mapper for Join Statements
119119

120-
If you are coding a join, it is likely you will need to code an XML mapper to define the result map. This is due to a MyBatis limitation - the annotations cannot define a collection mapping. If you have to do this, the Java code looks like this:
120+
If you are coding a join, it is likely you will need to code an XML mapper to define the result map. This is due to a MyBatis limitation - the annotations cannot define a collection mapping. If you have to do this, the Java code looks like this:
121121

122122
```java
123123
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@@ -142,7 +142,7 @@ And the corresponding XML looks like this:
142142
</mapper>
143143
```
144144

145-
Notice that the resultMap is the only element in the XML mapper. This is our recommended practice.
145+
Notice that the resultMap is the only element in the XML mapper. This is our recommended practice.
146146

147147
## XML Mapper for Select Statements
148148
We do not recommend using an XML mapper for select statements, but if you want to do so the SelectStatementProvider object can be used as a parameter to a MyBatis mapper method directly.

0 commit comments

Comments
 (0)