188 Commits

Author SHA1 Message Date
程序员小墨
ea5836ab51 fix: 修复 Codegen GlobalConfig 类缺少 setEntityWithBaseClassEnable 函数问题 globalConfig.getEntityConfig().setWithBaseClassEnable(true); 2025-02-12 16:40:36 +08:00
无名丶小辈
a597ef0967
update mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/constant/TemplateConst.java.
代码生成器补充solon的controller

Signed-off-by: 无名丶小辈 <qtvbwfn@vip.qq.com>
2025-01-14 03:55:36 +00:00
王帅
e234a818f8 fix: 主键定义在父实体类,导致代码生成器报错,关闭:https://gitee.com/mybatis-flex/mybatis-flex/issues/IA92JK,https://gitee.com/mybatis-flex/mybatis-flex/issues/IB4LOU 2024-11-17 21:47:51 +08:00
Michael Yang
82d62bfa4e feat: codegen add ColumnConfigFactory config support 2024-11-02 16:23:57 +08:00
Michael Yang
b346901621 refactor: 修改 StringUtil 的 isBlank 为 noText, 以及 isNotBlank 为 hasText 2024-10-28 10:53:50 +08:00
王帅
a4aa77d9ce feat: 代码生成器添加表后缀处理。 2024-10-04 09:24:30 +08:00
Michael Yang
d5d8c86e1c chore: update Copyright 2024-07-23 08:40:36 +08:00
Michael Yang
982667c0d2 chore: update Copyright 2024-07-23 08:40:10 +08:00
rainy
0a7752f51a feat 代码生成器 自动检测父类是否包含泛型 2024-06-05 09:28:45 +08:00
rainy
b22fcf75e7 fix java代码生成器base类缺少import;feat kotlin代码生成器支持withBaseClass模式 2024-06-04 13:56:30 +08:00
rainy
74b6185f1f Kotlin 代码生成器.添加父类泛型支持,生成时排除父类字段 2024-06-04 12:23:55 +08:00
Suomm
9bde89f428 feat: 生成 Java、Kotlin 两种代码。 2024-06-04 11:13:34 +08:00
Suomm
b5a1ee6521 feat: 添加 Kotlin 代码生成。 2024-06-04 11:12:41 +08:00
Suomm
2c205fc8db feat: 添加 Kotlin 代码生成模板。 2024-06-04 11:12:23 +08:00
StringKe
1b21708c30 feat(dialect): 添加 PostgreSQL 方言实现
添加了 PostgreSQLJdbcDialect 类的实现,以支持 Postgres 数据库的代码生成功能。

主要避免关键词导致的生成失败比如 user
2024-05-26 12:46:02 +08:00
Suomm
52a26d0dea fix: 修正 Controller 代码生成的主键类型。 2024-05-15 19:44:16 +08:00
Michael Yang
26a887e66f refactor: optimize JdbcTypeMapping.java 2024-05-14 09:43:43 +08:00
Michael Yang
efcfa729f4 refactor: optimize Table.buildControllerRequestMappingPrefix 2024-05-07 16:08:15 +08:00
distantSail
c3a9e19a52 代码生成器生成的Controller配置@RequestMapping前缀路径。
issues链接:
https://gitee.com/mybatis-flex/mybatis-flex/issues/I96BBA
2024-05-03 07:38:54 +08:00
cida
7d516d5640 fix: 将 GeneratorFactory.generators 的类型由 HashMap 替换为 LinkedHashMap,保证生成顺序,以解决生成顺序不确定产生的问题
- 如: 排除忽略列在 EntityGenerator 中,若 GeneratorFactory.generators 的类型为 HashMap,TableDef 先于 Entity 生成,导致 TableDef 中没有排除忽略列。
2024-04-16 18:46:30 +08:00
cida
b718a410eb optimize: 将 buildAnnotations 方法中,拼接注解时的前导制表符替换为四个空格,与模板统一格式 2024-04-16 17:30:33 +08:00
Michael Yang
7931674d8d refactor: optimize EnjoyTemplate.java 2024-04-08 18:45:16 +08:00
Suomm
b6c5d8ff19 fix: @Table 注解只有 value 时简化。 2024-03-29 13:03:38 +08:00
Suomm
b0a3b358d7 fix: 无法生成内置数据脱敏处理器键(Masks)的问题。 2024-03-29 12:21:49 +08:00
Suomm
5e1b5cd587 fix: EntityConfig 链式调用错误。 2024-03-29 11:58:55 +08:00
Suomm
0c1b59e662 feat: 添加 “总是生成 @Column 注解” 选项。 2024-03-29 11:54:12 +08:00
Michael Yang
a62faa0e5b feat: add "comment" for coedgen 2024-03-24 11:18:51 +08:00
gongdonghui
630396b406 feat:策略配置StrategyConfig支持通配符功能 2024-03-20 16:10:34 +08:00
Michael Yang
d78386f2c8 refactor: rename "mapper" to "typeMapper" in JdbcTypeMapping.java 2024-03-06 15:44:12 +08:00
Michael Yang
9356905a73 refactor: optimize Table.java and StringUtil.java 2024-03-04 18:07:07 +08:00
Michael Yang
1d0192e665 refactor: optimize Table.java 2024-03-04 16:28:20 +08:00
Michael Yang
4da740b7ef feat: add superClassFactory config for EntityConfig.java 2024-03-01 18:07:41 +08:00
Michael Yang
774a7264f8 feat: add superClassFactory config for EntityConfig.java 2024-03-01 17:55:03 +08:00
Michael Yang
1f3f57cb1e chore: optimize log for EntityGenerator.java 2024-02-28 09:41:47 +08:00
Michael Yang
1ac9a511f2 fix: 修复代码生成器设置类型为 java.util.List<String> 时,import 导入不正确的问题 2024-02-26 12:01:03 +08:00
Michael Yang
0ff7384581 refactor: refactor JdbcTypeMapper in "codegen" module 2024-02-26 11:24:18 +08:00
Michael Yang
f476bd80d5 refactor: optimize TableInfoFactory and codegen module 2024-02-03 16:13:55 +08:00
Michael Yang
34a82dda4c feat: 代码生成器添加生成 BaseEntity 的支持 close #I7JH7K 2024-01-30 16:31:11 +08:00
Michael Yang
e2723e0ef6 feat: add sourceDir config for generators 2024-01-26 10:48:18 +08:00
hanjinfeng39
c50a990a69 为生成的实体类增加serialVersionUID字段 2024-01-20 11:59:22 +08:00
开源海哥
ea83639365 feat: optimize dialect for codegen 2023-10-19 14:22:04 +08:00
开源海哥
bb4d83f559 feat: add Generator.getTables() method 2023-10-18 15:48:51 +08:00
开源海哥
03b0f839cf fix: 代码生成器为做自定义配置时,生成代码 NPE 的问题; close #I88UIZ 2023-10-17 19:57:29 +08:00
LeeNan
32a7072c64 提供了GlobalConfig的customConfig的getter/setter,代码生成器参数列表加入customConfig (变更为putAll方法) 2023-10-10 14:29:30 +08:00
LeeNan
6a3ace95da 提供了GlobalConfig的customConfig的getter/setter,代码生成器参数列表加入customConfig 2023-10-10 11:52:52 +08:00
nosusume
fdf30284b7 feat:codegen配置类实现Serializable接口 2023-09-12 22:14:32 +08:00
开源海哥
fd46c3207a feat: optimize JdbcTypeMapping.java 2023-09-07 10:19:59 +08:00
Suomm
77582e67a0 feat: 添加更多信息输出。 2023-08-30 12:24:42 +08:00
Suomm
2164596695 fix: Builder 缺少的字段构建。 2023-08-28 20:32:34 +08:00
王帅
687037f75c
update mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/config/StrategyConfig.java.
fix:https://gitee.com/mybatis-flex/mybatis-flex/issues/I7VQW9

Signed-off-by: 王帅 <1474983351@qq.com>
2023-08-24 11:19:55 +00:00