Class MybatisDynamicCodeGenerator
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.generator.core.MybatisDynamicCodeGenerator
-
public class MybatisDynamicCodeGenerator extends Object
The Mybatis dynamic code generator builder.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMybatisDynamicCodeGenerator.ConfigurerThe Configurer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MybatisDynamicCodeGenerator.ConfigurercustomConfigure()Custom configure.voidgenerate()Execute generate action.static GeneratorPropertiesBuilderwithGeneratorPropertiesBuilder()With generator properties builderstatic MybatisDynamicCodeGeneratorwithGeneratorPropertiesLoader(GeneratorPropertiesLoader generatorPropertiesLoader)With specific generator properties loaderstatic MybatisDynamicCodeGeneratorwithYamlConfiguration()With default yaml configuration file in classpath
mybatis-generator.yaml mybatis-generator.ymlstatic MybatisDynamicCodeGeneratorwithYamlConfiguration(String configurationFileName)With target yaml configuration file name.
-
-
-
Method Detail
-
withGeneratorPropertiesLoader
public static MybatisDynamicCodeGenerator withGeneratorPropertiesLoader(GeneratorPropertiesLoader generatorPropertiesLoader)
With specific generator properties loader- Parameters:
generatorPropertiesLoader- the generator properties loader- Returns:
- the mybatis dynamic code generator
-
withYamlConfiguration
public static MybatisDynamicCodeGenerator withYamlConfiguration()
With default yaml configuration file in classpath
- mybatis-generator.yaml
- mybatis-generator.yml
- Returns:
- the mybatis dynamic code generator
-
withGeneratorPropertiesBuilder
public static GeneratorPropertiesBuilder withGeneratorPropertiesBuilder()
With generator properties builder- Returns:
- the generator properties builder
-
withYamlConfiguration
public static MybatisDynamicCodeGenerator withYamlConfiguration(String configurationFileName)
With target yaml configuration file name.
- 1. classpath:config.yaml will load by classloader
- 2. /xxx/config.yaml will load by file system
- Parameters:
configurationFileName- the configuration file name- Returns:
- the mybatis dynamic code generator
-
generate
public void generate()
Execute generate action.
-
customConfigure
public MybatisDynamicCodeGenerator.Configurer customConfigure()
Custom configure.- Returns:
- the configurer
-
-