mybatis-generator-plugin
mybatis-generator-plugin copied to clipboard
Mybatis Generator 代码生成插件拓展,增加:查询单条数据插件(SelectOneByExamplePlugin)、MySQL分页插件(LimitPlugin)、数据Model链式构建插件(ModelBuilderPlugin)、Example Criteria 增强插件(ExampleEnh...
LombokPlugin conflicts with MyBatis3Simple
When generating mapper for tables that have multiple primary keys and have version column, the parameter of deleteWithVersionByPrimaryKey() method contains only the first primary key. ``` /** * 替换主键 方法...
Bumps logback-classic from 1.1.7 to 1.2.0. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
``` ``` pom.xml ``` org.mybatis.generator mybatis-generator-maven-plugin 1.3.7 true true mysql mysql-connector-java ${mysql.version} com.itfsw mybatis-generator-plugin 1.3.8 ``` 但我执行genereate时,日志显示save了两遍 ``` [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- mybatis-generator-maven-plugin:1.3.7:generate (default-cli) @ nsrep-topo ---...
Bumps [mybatis](https://github.com/mybatis/mybatis-3) from 3.5.0 to 3.5.6. Release notes Sourced from mybatis's releases. mybatis-3.5.6 Enhancements: A new configuration option defaultSqlProviderType is added. The specified class will be used as the SQL...
1. OverwrittenMapperXmlPlugin 重写Xml 文件插件 可以重写Xml文件, 防止多次生成后xml文件错误 2. SelectForUpdatePlugin 悲观锁插件 增加 select for update 功能, 用户一些特定的悲观锁场景 3. SerializablePlugin 序列化插件 为生成的Java文件实现Serializable接口, 方便其序列化. 方便 mybatis-plus 框架转成 mybatis-generator
大佬,[UpsertPlugin](https://github.com/itfsw/mybatis-generator-plugin/blob/5f91961a838b0cf594d9c03f992672ebfdcc9fc8/src/main/java/com/itfsw/mybatis/generator/plugins/UpsertPlugin.java#L422)里面如果用useGeneratedKeys的话,更新场景下会报错: ``` java Caused by: org.apache.ibatis.executor.ExecutorException: Too many keys are generated. There are only 1 target objects. You either specified a wrong 'keyProperty' or encountered a driver bug like #1523....
逻辑删除使用 del_flag 1 都表示 存在 -1 表示删除。 有个问题 比如 我order_id 需要唯一键 这样 删除2次就炸了。没法建立唯一键了。 解决方案了 del_flag 0 代表 存在 0以外的代表删除。 update set del_flag=id 来逻辑删除。 但是插件不支持。
比如一个表有5个字段,我可以输入一个值,自动匹配这5个字段 还可以支持:包括,排除关键字
能正常使用,但是编译时会产生大量警告信息,希望作者有时间更换其它实现方式,谢谢~