2 Star 1 Fork 1

hm-tools / hm-tools-mapper-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
hm-tools 提交于 2019-04-26 21:24 . 增 反996协议

hm-tools-mapper-plus

Maven Central 996.icu LICENSE

项目介绍

通用mapper工具扩展,依赖的内核工具:MyBatis 通用 Mapper4

软件架构

  1. 依赖MyBatis 通用 Mapper4
  2. freemarker

安装教程

  1. 引用本jar包
  	<dependency>
  		<groupId>top.hmtools</groupId>
  		<artifactId>hm-tools-mapper-plus</artifactId>
  		<version>0.0.1-SNAPSHOT</version>
  	</dependency>
  1. 参照MyBatis 通用 Mapper4安装说明整合。
  2. 基础mapper设置使用top.hmtools.mapper.plus.mysql.IMysqlMapperPlus即可

使用说明

  1. 参照MyBatis 通用 Mapper4使用说明。
  2. 基础mapper设置使用top.hmtools.mapper.plus.mysql.IMysqlMapperPlus即可。注意:目前仅整合了MySQL数据库

特性

  1. 扩展了批量写入数据
  2. 扩展了根据指定主键名称修改数据,含是否忽略空属性,具有防由于入参为空而造成误修改数据能力
  3. 扩展了根据指定主键名称即主键值集合批量物理删除对应数据,具有防由于入参为空而造成误删除数据能力
  4. 扩展了根据指定主键名称即主键值集合获取对应的数据集合

如何使用本组件的快照版本

  1. 在自己的私服建立一个快照代理仓库即可。https://oss.sonatype.org/content/repositories/snapshots/ 如何使用快照版本

  2. 将建好的参考纳入公共库 如何使用快照版本

Java
1
https://gitee.com/hm-tools/hm-tools-mapper-plus.git
git@gitee.com:hm-tools/hm-tools-mapper-plus.git
hm-tools
hm-tools-mapper-plus
hm-tools-mapper-plus
master

搜索帮助