mybatis-generator-gui icon indicating copy to clipboard operation
mybatis-generator-gui copied to clipboard

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

Results 103 mybatis-generator-gui issues
Sort by recently updated
recently updated
newest added

英文及符号都是乱码,编辑后的也是。 ![image](https://user-images.githubusercontent.com/42797437/133921256-de0eb159-f309-4cf0-bb60-b0330d4b2542.png)

请求对于这种怎么支持 mysql数据库是tinyint类型 生成的po对象类型为BIT 期望可以自定义配置 tinyint 类型的生成为Integer

如题 报这个错误 ,目测驱动版本不对 但找不到在哪里改CLIENT_PLUGIN_AUTH is required

**问题描述** 在mysql数据库中,表中字段类型为`bigint(20) unsigned`时,生成的Mapper文件`jdbcType=BIGINT UNSIGNED`。导致应用加载Mapper配置失败,无法启动。 - 建表语句 ![image](https://user-images.githubusercontent.com/5387597/124485817-8abcb300-dddf-11eb-9b77-1b7fffd1c518.png) - GUI中显示的JDBC TYPE ![image](https://user-images.githubusercontent.com/5387597/124486050-c9eb0400-dddf-11eb-9744-dcc699914814.png) - Mapper文件中错误的jdbcType ![image](https://user-images.githubusercontent.com/5387597/124486293-061e6480-dde0-11eb-9a16-396897bed046.png) **期望结果** 针对类似的字段数据类型,需要根据`java.sql.Types`转换为实际的jdbcType。 `bigint(20) unsigned`在mapper中的jdbcType应该为BIGINT **问题原因** - 加载定制列数据时,通过`DbUtil.getTableColumns()`获取列`JDBC TYPE`的过程中,直接根据`rs.getString("TYPE_NAME")`获取到的Type名称作为JDBC TYPE,并覆盖mybatis-generator生成的列配置 **修复方案** - `DbUtil.getTableColumns()`设置字段`jdbc type`时,使用mybatis generator提供的`JavaTypeResolverDefaultImpl`进行转换

实体和mapper都可以有一个父类

目前生成的查询只有一个根据主键查询一条数据的sql,能不能增加一个根据所有字段为条件查询的sql,返回列表

报错信息 `The specified file 'xxxx/mybatis-generator-gui/src/main/resources/lib/ojdbc14.jar' not exists` 源码里面确实缺少这个jar包....