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
  • 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

      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