通用 Mapper 4.0.4 发布,新增差异更新方法

栏目: 软件资讯 · 发布时间: 7年前

内容简介:4.0.4 更新日志 增加一个差异更新的方法 updateByDiffer 根据两个参数 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新。 添加 updateByPrimaryKeySelectiveWithForceUpdate (#344) by Huang Changyu...

4.0.4 更新日志

  • 增加一个差异更新的方法 updateByDiffer 根据两个参数 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新。

  • 添加 updateByPrimaryKeySelectiveWithForceUpdate (#344) by Huang Changyuan

  • KeySql 注解增加 GenSql 配置,允许自定义主键 SQL 生成方式。

  • 修改两个 insertList 参数为 List<? extends T>, fixed #370

  • 增加一个基于通用 Mapper 的全套完整架构的多个项目,这些项目在 guozilanTK 组织中。

Maven 依赖:

<dependency>
    <groupId>tk.mybatis</groupId>
    <artifactId>mapper</artifactId>
    <version>4.0.4</version>
</dependency>

如果你使用 Spring Boot,可以添加下面的依赖:

<dependency>
    <groupId>tk.mybatis</groupId>
    <artifactId>mapper-spring-boot-starter</artifactId>
    <version>2.0.4</version>
</dependency>

企业级的通用Mapper集成可以参考 guozilanTK 项目,项目地址:

https://github.com/guozilanTK

关于该项目的一些资料,可以通过下面的博客地址获取:

https://blog.csdn.net/isea533/article/details/81836136


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《通用 Mapper 4.0.4 发布,新增差异更新方法》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Lean Startup

The Lean Startup

Eric Ries / Crown Business / 2011-9-13 / USD 26.00

更多中文介绍:http://huing.com Most startups fail. But many of those failures are preventable. The Lean Startup is a new approach being adopted across the globe, chan ging the way companies are built and ......一起来看看 《The Lean Startup》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具