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

cn.schoolwow.quickdao.module.entity.domain.EntityOption Maven / Gradle / Ivy

There is a newer version: 5.3.1
Show newest version
package cn.schoolwow.quickdao.module.entity.domain;

import cn.schoolwow.quickdao.annotation.IdStrategy;
import cn.schoolwow.quickdao.domain.database.dql.condition.QueryColumnTypeMapping;
import cn.schoolwow.quickdao.domain.entity.Entity;
import cn.schoolwow.quickdao.domain.entity.EntityListener;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;

public class EntityOption {
    /**
     * 待扫描包名
     */
    public Map packageNameMap = new HashMap<>();

    /**
     * 待扫描类
     */
    public Map entityClassMap = new HashMap<>();

    /**
     * 要忽略的类
     */
    public List ignoreClassList;

    /**
     * 要忽略的包名
     */
    public List ignorePackageNameList;

    /**
     * 函数式接口过滤类,返回true表示过滤,false保留
     */
    public Predicate ignorePredicate;

    /**
     * 用户自定义entity
     * */
    public Map definerEntityMap = new HashMap<>();

    /**
     * 全局Id生成策略
     */
    public IdStrategy idStrategy;

    /**
     * 查询返回结果类型转换
     */
    public QueryColumnTypeMapping queryColumnTypeMapping;

    /**
     * 自定义用户实体处理逻辑
     * */
    public EntityListener entityListener;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy