Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.35 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.35 KB

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.