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

com.github.zj.dreamly.develop.Runner Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.6
Show newest version
package com.github.zj.dreamly.develop;

import com.github.zj.dreamly.develop.support.CodeGenerator;

/**
 * 

CodeGenerator

* * @author: Chill * @since: 0.0.1 **/ public class Runner { /** * 代码生成的模块名 */ private static final String CODE_NAME = "halyard"; /** * 代码所在服务名 */ private static final String SERVICE_NAME = "halyard"; /** * author */ private static final String AUTHOR = "苍海之南"; /** * 代码生成的包名 */ private static final String PACKAGE_NAME = "com.synco.fluke"; /** * 需要去掉的表前缀 */ private static final String[] TABLE_PREFIX = {}; /** * 需要生成的表名(两者只能取其一) */ private static final String[] INCLUDE_TABLES = {"comment_report"}; /** * 需要排除的表名(两者只能取其一) */ private static final String[] EXCLUDE_TABLES = {}; /** * 是否包含基础业务字段 */ private static final Boolean HAS_SUPER_ENTITY = Boolean.FALSE; /** * 基础业务字段 */ private static final String[] SUPER_ENTITY_COLUMNS = {"id", "create_time", "update_time"}; public static void main(String[] args) { CodeGenerator generator = new CodeGenerator(); generator.setCodeName(CODE_NAME); generator.setAuthor(AUTHOR); generator.setServiceName(SERVICE_NAME); generator.setPackageName(PACKAGE_NAME); generator.setTablePrefix(TABLE_PREFIX); generator.setIncludeTables(INCLUDE_TABLES); generator.setExcludeTables(EXCLUDE_TABLES); generator.setHasSuperEntity(HAS_SUPER_ENTITY); generator.setSuperEntityColumns(SUPER_ENTITY_COLUMNS); generator.run(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy