Class MybatisDynamicCodeGenerator
java.lang.Object
pro.chenggang.project.reactive.mybatis.support.generator.core.MybatisDynamicCodeGenerator
The Mybatis dynamic code generator builder.
- Version:
- 1.0.0
- Author:
- Gang Cheng
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Configurer. -
Method Summary
Modifier and TypeMethodDescriptionCustom configure.voidgenerate()Execute generate action.static GeneratorPropertiesBuilderWith generator properties builderstatic MybatisDynamicCodeGeneratorwithGeneratorPropertiesLoader(GeneratorPropertiesLoader generatorPropertiesLoader) With specific generator properties loaderstatic MybatisDynamicCodeGeneratorWith default yaml configuration file in classpath
mybatis-generator.yaml mybatis-generator.ymlstatic MybatisDynamicCodeGeneratorwithYamlConfiguration(String configurationFileName) With target yaml configuration file name.
-
Method Details
-
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
With default yaml configuration file in classpath
- mybatis-generator.yaml
- mybatis-generator.yml
- Returns:
- the mybatis dynamic code generator
-
withGeneratorPropertiesBuilder
With generator properties builder- Returns:
- the generator properties builder
-
withYamlConfiguration
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
Custom configure.- Returns:
- the configurer
-