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: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,17 @@ See the following pages for detailed information:
55
55
|[Kotlin Support with Spring](src/site/markdown/docs/kotlinSpring.md)| Information about the Kotlin extensions and Kotlin DSL when using Spring JDBC Template as the runtime |
56
56
|[Spring Batch Support](src/site/markdown/docs/springBatch.md)| Information about specialized support for Spring Batch using the [MyBatis Spring Integration](https://github.com/mybatis/spring)|
57
57
58
+
The library test cases provide several complete examples of using the library in various different styles:
59
+
60
+
| Language | Runtime | Comments | Code Directory |
61
+
|---|---|---|---|
62
+
| Java | MyBatis3 | Example using Java utility classes for MyBatis in the style of MyBatis Generator |[src/test/java/examples/simple](src/test/java/examples/simple)|
63
+
| Java | MyBatis3 | Example using Java utility classes for the MyBatis integration with Spring Batch |[src/test/java/examples/springbatch](src/test/java/examples/springbatch)|
64
+
| Java | Spring JDBC | Example using Java utility classes for Spring JDBC Template |[src/test/java/examples/spring](src/test/java/examples/spring)|
65
+
| Kotlin | MyBatis3 | Example using Kotlin utility classes for MyBatis in the style of MyBatis Generator |[src/test/kotlin/examples/kotlin/mybatis3/canonical](src/test/kotlin/examples/kotlin/mybatis3/canonical)|
66
+
| Kotlin | Spring JDBC | Example using Kotlin utility classes for Spring JDBC Template |[src/test/kotlin/examples/kotlin/spring/canonical](src/test/kotlin/examples/kotlin/spring/canonical)|
67
+
68
+
58
69
## Requirements
59
70
60
71
The library has no dependencies. Java 8 or higher is required.
The library will create classes that will be used as input to a MyBatis mapper. These classes include the generated SQL, as well as a parameter set that will match the generated SQL. Both are required by MyBatis. It is intended that these objects be the one and only parameter to a MyBatis mapper method.
99
+
The library will create classes that will be used as input to a MyBatis mapper. These classes include the generated
100
+
SQL, as well as a parameter set that will match the generated SQL. Both are required by MyBatis. It is intended that
101
+
these objects be the one and only parameter to a MyBatis mapper method.
77
102
78
-
The library can be used with both XML and annotated mappers, but we recommend using MyBatis' annotated mapper support in all cases. The only case where XML is required is when you code a JOIN statement - in that case you will need to define your result map in XML due to limitations of the MyBatis annotations in supporting joins.
103
+
The library can be used with both XML and annotated mappers, but we recommend using MyBatis' annotated mapper support in
104
+
all cases. The only case where XML is required is when you code a JOIN statement - in that case you will need to define
105
+
your result map in XML due to limitations of the MyBatis annotations in supporting joins.
0 commit comments