Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.24 KB

README.md

File metadata and controls

43 lines (39 loc) · 1.24 KB

mybatis generator enhanced plugins for mysql

包含3个插件和一个定制的中文注释生成器

  • 批量插入插件 - com.zzh.mbg.plugin.MysqlBatchInsertPlugin
  • 批量更新插件 - com.zzh.mbg.plugin.MysqlBatchUpdatePlugin
  • 批量非空更新插件 - com.zzh.mbg.plugin.MysqlBatchUpdateSelectivePlugin
  • 中文注释生成器 - com.zzh.mbg.GeneralCommentGenerator

插件配置

        <plugin type="com.zzh.mbg.plugin.MysqlBatchInsertPlugin" />
        <plugin type="com.zzh.mbg.plugin.MysqlBatchUpdatePlugin" />
        <plugin type="com.zzh.mbg.plugin.MysqlBatchUpdateSelectivePlugin" />

注释配置

        <commentGenerator type="com.zzh.mbg.GeneralCommentGenerator">
            <!--<property name="suppressAllComments" value="true" />-->
            <property name="suppressDate" value="true" />
            <property name="addRemarkComments" value="true" />
        </commentGenerator>

使用说明

  1. 下载项目
  git clone https://github.com/naughtybear/mbg-plugin.git
  1. 进入项目目录
  cd mbg-plugin
  1. 使用maven或者gradle安装到本地maven仓库
  mvn install

或者

  gradle install
  1. run mgb with maven