您的位置:首页 > 其它

在Ibatis中,select语句引起的缓存处理方法

2012-03-15 16:36 232 查看
ibaits源码中缓存列名的地方在这里:

com.ibatis.sqlmap.engine.mapping.result .AutoResultMap

public
synchronized Object[] getResults(StatementScope statementScope, ResultSet rs)

throws SQLException {

if (allowRemapping || getResultMappings() ==
null) {
initialize(rs);

return super.getResults(statementScope, rs);
}

处理方法:给动态的字段起个别名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: