| package com.zy.common; | 
|   | 
| import com.core.generators.CoolGenerator; | 
| import com.core.generators.constant.SqlOsType; | 
|   | 
| /** | 
|  * Created by vincent on 2019-06-04 | 
|  */ | 
| public class CodeBuilder { | 
|   | 
|     public static void main(String[] args) throws Exception { | 
|         CoolGenerator generator = new CoolGenerator(); | 
|         // mysql | 
| //        generator.url="localhost:3306/cool"; | 
| //        generator.username="root"; | 
| //        generator.password="xltys1995"; | 
| //        generator.table="sys_host"; | 
|         // sqlserver | 
|         generator.sqlOsType = SqlOsType.SQL_SERVER; | 
|         generator.url="localhost:1433;databasename=jshdasrs"; | 
|         generator.username="sa"; | 
|         generator.password="sa@123"; | 
|         generator.table="asr_bas_rgv_error_log"; | 
|         generator.packagePath="com.zy.asrs"; | 
|         generator.build(); | 
|     } | 
|   | 
| } |