Generator from Java POJO for XXDynamicSqlSupport in Mybatis Dynamic Sql
- JDK>=8
- Gradle>=7
implementation("xyz.codemeans.mybatis:mds-annotation:1.2")
implementation("xyz.codemeans.mybatis:mds-generator:1.2")See:
mds-generator/src/test/java/mds/example/ExampleApplication.javamds-generator/src/test/java/mds/example/ExampleMain.javamds-generator/src/test/resources/application.properties
Usage:
- Import
mds-annotationinto model module, and then annotated classes to generate Mybatis DynamicSqlSupport from. - Import
mds-generatorinto some module, and then make a Spring Application class like theExampleApplicationor just a main class to initializeGeneratorRunnercorretly likeExampleMain. - Config some generation tasks for the generator.
- Run the main class, and you'll get all needed DynamicSqlSupport classes generated!😁
Download this project and run the ExampleApplication for a try.