Skip to content

zhaozhanh/mbg-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

mybatis generator enhanced plugins for mysql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages