Created
May 14, 2012 03:16
-
-
Save vivisidea/2691570 to your computer and use it in GitHub Desktop.
queryForMap的用法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings("unchecked") | |
@Override | |
public Map<Integer, Integer> queryCountGroupByTargetId() { | |
Map<Integer, Integer> map = (Map<Integer, Integer>)getSqlMapClientTemplate().queryForMap( | |
"Keyword.queryCountGroupByTargetId", null, "TargetId", "Count"); // queryForMap就是指定哪一列为key,哪一列为value,即可 | |
return map; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment