红联Linux门户
Linux帮助

Mybatis通用Mapper 3.2.0发布

发布时间:2015-09-02 09:18:01来源:红联作者:empast
最新版本3.2.0 - 2015-09-02

移除MapperInterceptor拦截器,以后不能在通过拦截器配置

增加mybatis-spring特殊支持,主要是根据mybatis-spring项目增加了下面两个类:

tk.mybatis.spring.mapper.MapperScannerConfigurer

tk.mybatis.spring.mapper.MapperFactoryBean

这两个类和MyBatis提供的区别是增加了MapperHelper属性,通过在MapperScannerConfigurer中使用properties属性注入配置

这两个类,在全名上和MyBatis的区别是org.mybatis.xxx改为了tk.mybatis.xxx,名字相近,更方便修改配置

增加style属性配置,用来配置对象名/字段和表名/字段之间的转换方式,可选值:

normal:使用实体类名/属性名作为表名/字段名

camelhump:这是默认值,驼峰转换为下划线形式

uppercase:转换为大写

lowercase:转换为小写

增加实体注解@NameStyle,该注解优先于全局配置style

解决example.selectProperties映射错误的bug#48

软件详情:http://git.oschina.net/free/Mapper

下载地址:http://git.oschina.net/free/Mapper/repository/archive?ref=master

来自:开源中国社区
文章评论

共有 0 条评论