1、环境准备
1.1 jar包
1.2 生成器的代码
2、需要编写生重点内容成操作数据的代码
/**
* Generates entities and DAOs for the example project DaoExample.
*
* Run it as a Java application (not Android).
*
* @author Markus
*/
public class ExampleDaoGenerator {
public static void main(String[] args) throws Exception {
//第一个为数据库的版本号,第二个是自动生成数据库相关文件的包名
Schema schema = new Schema(1000, "com