最新版生成代码的指定字段类型
FastAutoGenerator
.dataSourceConfig(config -> {config.typeConvertHandler(new ITypeConvertHandler() {@Overridepublic @NotNull IColumnType convert(GlobalConfig globalConfig, TypeRegistry typeRegistry, TableField.MetaInfo metaInfo) {if ("status".equals(metaInfo.getColumnName())){return new IColumnType() {@Overridepublic String getType() {return StatusEnum.getSimpleName();}@Overridepublic String getPkg() {return StatusEnum.getName();}};}return typeRegistry.getColumnType(metaInfo);}}).build();
})