cn.meteor.common.database.contstants.GenConstants Maven / Gradle / Ivy
package cn.meteor.common.database.contstants;// Copyright (C), Created on 2021-04-05
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* 代码生成器常量类
*
* @author ths
* @since 1.0.0
*/
public interface GenConstants {
String STRING = String.class.getSimpleName();
String INTEGER = Integer.class.getSimpleName();
String LONG = Long.class.getSimpleName();
String BIG_DECIMAL = BigDecimal.class.getSimpleName();
String LOCAL_DATE_TIME = LocalDateTime.class.getSimpleName();
String LOCAL_DATE = LocalDate.class.getSimpleName();
String LOCAL_TIME = LocalTime.class.getSimpleName();
/** 生成代码时忽略 */
List BUILD_IGNORE = Arrays.asList("id", "enabled", "deleted", "version", "create_time", "update_time", "creator", "data_perm", "remark");
/** 创建忽略 */
List CREATE_IGNORE = Arrays.asList("id", "enabled", "deleted", "version", "create_time", "update_time", "creator", "data_perm");
/** 修改忽略 */
List MODIFY_IGNORE = Arrays.asList("deleted", "create_time", "update_time", "creator", "data_perm");
/** 查询忽略 */
List LIST_IGNORE = Collections.singletonList("deleted");
/** 判断是什么类型查询的依据 */
String FIELD_NAME = "name";
String FIELD_STATUS = "status";
String FIELD_TYPE = "type";
}