summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/src/MapperRegistration.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/MyMyBatis/src/MapperRegistration.java')
-rw-r--r--java/MyMyBatis/src/MapperRegistration.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/MapperRegistration.java b/java/MyMyBatis/src/MapperRegistration.java
new file mode 100644
index 0000000..caf5587
--- /dev/null
+++ b/java/MyMyBatis/src/MapperRegistration.java
@@ -0,0 +1,11 @@
+package ch.asynk;
+
+import org.apache.ibatis.session.Configuration;
+
+public class MapperRegistration
+{
+ static public void registerMappers(SqlConnection conn)
+ {
+ conn.registerMapper("Model", Model.class, ModelMapper.class);
+ }
+}