mybatis- 3.1.1. how to override the resultmap returned from mybatis

前端 未结 3 1331
臣服心动
臣服心动 2020-12-18 16:13

we using mybatis 3.1.1.

we found for oracle the result map returned contains column name in Capital letters and in case of mySql the result map returned contains col

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 16:47

    The idea of a LowerCaseMap as the ResultType is sound, but you can probably avoid writing your own. In my case I'm using org.apache.commons.collections4.map.CaseInsensitiveMap:

    
    

提交回复
热议问题