diff options
Diffstat (limited to 'java/MyMyBatis/src/ModelMapper.java')
-rw-r--r-- | java/MyMyBatis/src/ModelMapper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/ModelMapper.java b/java/MyMyBatis/src/ModelMapper.java index e71f851..901af2c 100644 --- a/java/MyMyBatis/src/ModelMapper.java +++ b/java/MyMyBatis/src/ModelMapper.java @@ -36,4 +36,8 @@ public interface ModelMapper extends AbstractMapper<Integer, Model> final static String SELECT_ONE = SELECT + where; @Select(SELECT_ONE) Model selectOne(Integer id); + + final static String SELECT_SELF = SELECT + where; + @Select(SELECT_SELF) + Model selectSelf(Model obj); } |