All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zengtengpeng.demo.Demo1simple Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.zengtengpeng.demo;

import com.zengtengpeng.autoCode.StartCode;
import com.zengtengpeng.autoCode.config.AutoCodeConfig;
import com.zengtengpeng.jdbc.utils.JDBCUtils;

import java.sql.Connection;
import java.util.List;

/**
 * 单表生成实例
 */
public class Demo1simple {
    public static void main(String[] args) {
        //lambda表达式写法 二选一
        StartCode startCode= t->{};

        //普通写法 二选一
//        StartCode startCode=new StartCode() {
//            @Override
//            public void custom(AutoCodeConfig autoCodeConfig) {
//
//            }
//        };
        AutoCodeConfig autoCodeConfig = StartCode.saxYaml("auto-code_simple.yaml");
        Connection connection = startCode.getConnection(autoCodeConfig);
        List tablesName = JDBCUtils.getTablesName(connection,null);
        System.out.println(tablesName);
//        startCode.start(autoCodeConfig);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy