Skip to content

Generator from Java POJO for XXDynamicSqlSupport in Mybatis Dynamic Sql

License

Notifications You must be signed in to change notification settings

YuanWenqing/mds-generator

Repository files navigation

Mybatis DynamicSqlSupport Generator

Generator from Java POJO for XXDynamicSqlSupport in Mybatis Dynamic Sql

Requirements

  • JDK>=8
  • Gradle>=7

Gradle

implementation("xyz.codemeans.mybatis:mds-annotation:1.2")
implementation("xyz.codemeans.mybatis:mds-generator:1.2")

Example

See:

Usage:

  1. Import mds-annotation into model module, and then annotated classes to generate Mybatis DynamicSqlSupport from.
  2. Import mds-generator into some module, and then make a Spring Application class like the ExampleApplication or just a main class to initializeGeneratorRunner corretly like ExampleMain.
  3. Config some generation tasks for the generator.
  4. Run the main class, and you'll get all needed DynamicSqlSupport classes generated!😁

Download this project and run the ExampleApplication for a try.

About

Generator from Java POJO for XXDynamicSqlSupport in Mybatis Dynamic Sql

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages