Generate java code by your own models. Get all the code you wanted only by one click!
- First of all, you must have a MySQL account and some table.
- Replace the dateSource configuration by your own account in the file -- src\main\resources\config\config.properties.
- Specify the table you to isGenerate the java code, if you don't, then all the table of the dataSource will be generated.
- Run the main method of com.Build.
- Now you will get all the code you needed in the root path of the project, or somewhere else you modified in the config properties.
If the default template does not suitable to your project, custom templates is also supported. All the templates are in the "src\main\resources\template" package.
Enjoy it ~