Releases: itfsw/mybatis-generator-plugin
Releases · itfsw/mybatis-generator-plugin
Mybatis Generator Plugin Realease 1.2.1
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 乐观锁插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.OptimisticLockerPlugin"/>Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.2.1</version>
</dependency>UPDATE:
建议使用老版(1.1.x)的用户不要升级,Selective选择插入更新增强插件不兼容,请继续使用分支V1.1.x(只进行BUG修正,不再添加新功能);
- 重构了Selective选择插入更新增强插件,以前老版本(1.1.x)插件处理需要指定的列时是放入Model中指定的,但在实际使用过程中有同事反馈这个处理有点反直觉,导致某些新同事不能及时找到对应方法,而且和增强的SelectSelectivePlugin以及UpsertSelective使用方式都不一致,所以统一修改之;
- issues#23:新增了乐观锁插件(OptimisticLockerPlugin);
- 重构了 查询结果选择性返回插件(SelectSelectivePlugin),并完善了测试用例;
- 增强了存在即更新插件(UpsertPlugin)对自增主键的支持;
- 重构了项目插件依赖逻辑,引入hook机制;
- 测试用例流程优化,防止脏数据影响用例执行;
上一版本
Mybatis Generator Plugin Realease 1.1.2
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.1.2</version>
</dependency>UPDATE:
上一版本
- bugfix(issues#16):SelectSelectivePlugin插件返回类型之前是使用resultType进行返回(规避在启用constructorBased时因为参数个数不同导致的异常),但是在用户使用自定义column时会出现属性不对应的BUG,所以修复成使用resultMap进行属性绑定;
- PS:如果没有自定义column之前版本不影响正常使用,而且改为使用resultMap进行属性绑定时,当某一行所有数据都为null时会存在list中存在空元素情况,使用时一定要注意进行null判断(这个是Mybatis自身机制不是插件异常,Mybatis对于不存在值的行不会生成对象,当然如果有更好的处理办法欢迎大家提出来)!
Mybatis Generator Plugin Realease 1.1.1
Mybatis Generator Plugin Realease 1.1.1
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.1.1</version>
</dependency>UPDATE:
- bugfix(issues#16):SelectSelectivePlugin插件返回类型之前是使用resultType进行返回(规避在启用constructorBased时因为参数个数不同导致的异常),但是在用户使用自定义column时会出现属性不对应的BUG,所以修复成使用resultMap进行属性绑定;
- PS:如果没有自定义column之前版本不影响正常使用,而且改为使用resultMap进行属性绑定时,当某一行所有数据都为null时会存在list中存在空元素情况,使用时一定要注意进行null判断(这个是Mybatis自身机制不是插件异常,Mybatis对于不存在值的行不会生成对象,当然如果有更好的处理办法欢迎大家提出来)!
上一版本
- 升级mybatis-generator-core到最新版本1.3.6;
- 官方ConstructorBased配置BUG临时修正插件过期(官方1.3.6已经修复了该BUG);
Mybatis Generator Plugin Realease 1.1.0
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.1.0</version>
</dependency>UPDATE:
- 升级mybatis-generator-core到最新版本1.3.6;
- 官方ConstructorBased配置BUG临时修正插件过期(官方1.3.6已经修复了该BUG);
上一版本
- bugfix:插件SelectiveEnhancedPlugin之前命名的判断方法isSelective在进行Json Serializer 时某些情况下可能造成冲突,重新命名为hasSelective;
Mybatis Generator Plugin Realease 1.0.19
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 官方ConstructorBased配置BUG临时修正插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ConstructorBasedBugFixPlugin" />Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.19</version>
</dependency>UPDATE:
- bugfix:插件SelectiveEnhancedPlugin之前命名的判断方法isSelective在进行Json Serializer 时某些情况下可能造成冲突,重新命名为hasSelective;
上一版本
逻辑删除插件的部分重构;
Mybatis Generator Plugin Realease 1.0.18
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 官方ConstructorBased配置BUG临时修正插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ConstructorBasedBugFixPlugin" />Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.18</version>
</dependency>UPDATE:
逻辑删除插件的部分重构;
- 合并(pull#12)):因为之前觉得既然拿到了主键这种查询没有必要,但是实际使用中可能存在根据主键判断是否逻辑删除的情况,这种场景还是有用的。这里感谢(DomKing)的贡献;
- 数据Model中增加andLogicalDeleted方法来快速对逻辑删除列赋值;
- 过期查询创建中的andDelete方法,使用andLogicalDeleted方法来代替,防止歧义;
- 同时修正逻辑删除常量和新增的Model的andLogicalDeleted位置,跟随逻辑列的Model类,防止类似逻辑删除列做联合主键时可能发生的BUG;
上一版本
UPDATE:
- bugfix(issues#11)):根据大家的意见重新命名逻辑删除插件的常量名,防止理解上的不便,同时增加可配置选项;
Mybatis Generator Plugin Realease 1.0.17
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 官方ConstructorBased配置BUG临时修正插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ConstructorBasedBugFixPlugin" />Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.17</version>
</dependency>UPDATE:
- bugfix(issues#11)):根据大家的意见重新命名逻辑删除插件的常量名,防止理解上的不便,同时增加可配置选项;
上一版本
UPDATE:
- bugfix(issues#10)):插件中在多个地方使用了正则获取columnName,但在autoDelimitKeywords启用的情况下获取的columnName带有修正符,所以不能正确获取,所以增加了一个安全获取column的方法来获取;
- ModelBuilderPlugin 插件增加一个静态builder方法,方便快速创建Builder类,具体使用参考数据model链式构建插件;
Mybatis Generator Plugin Realease 1.0.16
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 官方ConstructorBased配置BUG临时修正插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ConstructorBasedBugFixPlugin" />Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.16</version>
</dependency>UPDATE:
- bugfix(issues#10)):插件中在多个地方使用了正则获取columnName,但在autoDelimitKeywords启用的情况下获取的columnName带有修正符,所以不能正确获取,所以增加了一个安全获取column的方法来获取;
- ModelBuilderPlugin 插件增加一个静态builder方法,方便快速创建Builder类,具体使用参考数据model链式构建插件;
上一版本
UPDATE:
- 完成所有插件测试用例;
- 重构UpsertPlugin插件,方法命名和实现尽量保持和官方一致;
- TableRenamePlugin 插件重命名方式改为首字母大写,不再错误使用官方驼峰命名插件;
- 一个官方BUG(issues#267)临时修复插件(官方V1.3.6版本将解决这个bug);
- 一些bug修正;
Mybatis Generator Plugin Realease 1.0.15
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>
<!-- 官方ConstructorBased配置BUG临时修正插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ConstructorBasedBugFixPlugin" />Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.15</version>
</dependency>UPDATE:
- 完成所有插件测试用例;
- 重构UpsertPlugin插件,方法命名和实现尽量保持和官方一致;
- TableRenamePlugin 插件重命名方式改为首字母大写,不再错误使用官方驼峰命名插件;
- 一个官方BUG(issues#267)临时修复插件(官方V1.3.6版本将解决这个bug);
- 一些bug修正;
上一版本
UPDATE:
- bugfix:IncrementsPlugin插件自增参数配置字段取名不特殊,会和用户数据库表中字段存在冲突可能;
- 补充IncrementsPlugin插件测试用例;
Mybatis Generator Plugin Realease 1.0.14
<!-- 查询单条数据插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin"/>
<!-- 数据Model链式构建插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"/>
<!-- Example Criteria 增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- MySQL分页插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LimitPlugin"/>
<!-- Example 目标包修改插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleTargetPlugin"/>
<!-- 批量插入插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 存在即更新插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.UpsertPlugin"/>
<!-- Selective选择插入更新增强插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"/>
<!-- Table增加前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TablePrefixPlugin"/>
<!-- Table重命名插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableRenamePlugin"/>
<!-- 自定义注释插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.CommentPlugin"/>
<!-- 增量插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.IncrementsPlugin"/>
<!-- 查询结果选择性返回插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.SelectSelectivePlugin"/>Maven依赖:
<dependency>
    <groupId>com.itfsw</groupId>
    <artifactId>mybatis-generator-plugin</artifactId>
    <version>1.0.14</version>
</dependency>UPDATE:
- bugfix:IncrementsPlugin插件自增参数配置字段取名不特殊,会和用户数据库表中字段存在冲突可能;
- 补充IncrementsPlugin插件测试用例;
上一版本
UPDATE:
- 新增增量插件;
- 新增查询结果选择性返回插件;
- bugfix:SelectiveEnhancedPlugin插件在增强“#{(.?),.},?”这种类型时,错误的使用了生成的java field字段进行了判断;
- 引入测试框架,后续逐步覆盖所有插件的测试;