增加 postgreSQL 支持 |
||
---|---|---|
src/main | ||
.gitattributes | ||
.gitignore | ||
README.md | ||
pom.xml |
README.md
megabatis-generator
Introduction
Mybatis Generator is a code generator for Java DAO, which generates simple CRUD methods. But its code does not support complex SQL query, for example pagination. So a simple extension supporting pagination is developed.
Usage
- Configure database connection parameters in file
megabatis-generator/datasource.properties
; - Edit file
generatorConfig.xml
, modify java model package and location; - Modify java mapper xml files location;
- Modify generated java mapper model location;
- Modify target tables in your database;