summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/MyMyBatis/src/AbstractDAOOperations.java2
-rw-r--r--java/MyMyBatis/src/AbstractMapper.java2
-rw-r--r--java/MyMyBatis/src/ModelMapper.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/java/MyMyBatis/src/AbstractDAOOperations.java b/java/MyMyBatis/src/AbstractDAOOperations.java
index a96e336..cc183c9 100644
--- a/java/MyMyBatis/src/AbstractDAOOperations.java
+++ b/java/MyMyBatis/src/AbstractDAOOperations.java
@@ -4,7 +4,7 @@ import java.util.List;
public abstract class AbstractDAOOperations<TIdentity,
TObject extends AbstractModel<TIdentity>,
- TMapper extends AbstractMapper<TObject, TIdentity>> extends AbstractDAO<TObject, TMapper>
+ TMapper extends AbstractMapper<TIdentity, TObject>> extends AbstractDAO<TObject, TMapper>
{
public int insert(final TObject obj)
diff --git a/java/MyMyBatis/src/AbstractMapper.java b/java/MyMyBatis/src/AbstractMapper.java
index 54887b8..33bd567 100644
--- a/java/MyMyBatis/src/AbstractMapper.java
+++ b/java/MyMyBatis/src/AbstractMapper.java
@@ -2,7 +2,7 @@ package ch.asynk;
import java.util.List;
-public interface AbstractMapper<TObject, TIdentity>
+public interface AbstractMapper<TIdentity, TObject>
{
int insert(TObject obj);
diff --git a/java/MyMyBatis/src/ModelMapper.java b/java/MyMyBatis/src/ModelMapper.java
index 77b1921..e71f851 100644
--- a/java/MyMyBatis/src/ModelMapper.java
+++ b/java/MyMyBatis/src/ModelMapper.java
@@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Select;
-public interface ModelMapper extends AbstractMapper<Model, Integer>
+public interface ModelMapper extends AbstractMapper<Integer, Model>
{
final static String attrs = " id, name ";
final static String from = " from models ";