id description superid
1 test1 0
2 test2 1
3 test3 1
当查询结果需要为 id(本记录的id) description(本记录的description) description(本记录的父级description, 通过superid标识得到)
例如查询结果集为: 2 test2 test1
这种情况 iBatis如果映射?
resultMap?
resultClass+SQL语句里的AS?
似乎都无法映射
当查询结果需要为 id(本记录的id) description(本记录的description) description(本记录的父级description, 通过superid标识得到)
例如查询结果集为: 2 test2 test1
这种情况 iBatis如果映射?
resultMap?
resultClass+SQL语句里的AS?
似乎都无法映射
不用担心性能,缓存会帮你忙。
使用了全局缓存,因为数据量大太了
不过多个系统共用一数据库,在做保持数据准确性上又困惑了,对某表的操作可能并不是本系统才有的权限,二次开发太多限制了