diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2017-04-19 16:41:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2017-04-19 16:41:12 +0200 |
commit | 6fcde2655e8aedd56bff1de4e85bb83fee15c591 (patch) | |
tree | 0252a92cad52e82f0dce1fcea8fc11a530e505b4 /java/MyMyBatis/src | |
parent | 8ec2af6e29ecb29645367a28fb1a48cf7f4f24ff (diff) | |
download | share-6fcde2655e8aedd56bff1de4e85bb83fee15c591.zip share-6fcde2655e8aedd56bff1de4e85bb83fee15c591.tar.gz |
java : MyMyBatis : reorder AbstractMapper type parameters
Diffstat (limited to 'java/MyMyBatis/src')
-rw-r--r-- | java/MyMyBatis/src/AbstractDAOOperations.java | 2 | ||||
-rw-r--r-- | java/MyMyBatis/src/AbstractMapper.java | 2 | ||||
-rw-r--r-- | java/MyMyBatis/src/ModelMapper.java | 2 |
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 "; |