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

cn.meteor.common.database.contstants.GenConstants Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
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";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy