mybatis-generator-gui
mybatis-generator-gui copied to clipboard
mybatis-generator界面工具,让你生成代码更简单更快捷

``` Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe, occupation_id...
 我想直接放到 user 目录下,没有包名
在 generate() 方法前面增加了四行语句: `tableConfig.setCountByExampleStatementEnabled(false); ` `tableConfig.setDeleteByExampleStatementEnabled(false); ` `tableConfig.setSelectByExampleStatementEnabled(false); ` `tableConfig.setUpdateByExampleStatementEnabled(false);` 仍然会在 model 中生成以 Example 结尾的类。
实体抓取表中字段的default值
当勾选jpa 时,注解未生成 @Entity 致使在springboot中已报错 实体找不到
Oracle生成xml,mapper中会有很多resultmap,生成了好几千行代码。
经测试标明,生成过程是完全覆盖旧代码,但是Mybatis Generator有一个@mbggenerated注解,默认情况下,带这个注解的代码才会在重新生成时被覆盖,不带这个注解的代码会在重新生成时被略过,能否在GUI界面实现这个功能
如题