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.java
mds-generator/src/test/java/mds/example/ExampleMain.java
mds-generator/src/test/resources/application.properties
Usage:
- Import
mds-annotation
into model module, and then annotated classes to generate Mybatis DynamicSqlSupport from. - Import
mds-generator
into some module, and then make a Spring Application class like theExampleApplication
or just a main class to initializeGeneratorRunner
corretly 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.