package cd.casic.plugin.core.register.filter.impl;


import cd.casic.plugin.core.register.filter.PluginClassFilter;
import cd.casic.plugin.utils.AnnotationUtils;
import cd.casic.plugin.utils.dBUtils.annotation.Entity;

public class DataBaseEntityFilter implements PluginClassFilter {
    public static final String GROUP_NAME = "database_entity";
    @Override
    public String groupName() {
        return GROUP_NAME;
    }

    @Override
    public void initialize() {

    }

    @Override
    public boolean filter(Class<?> clazz) {
        return AnnotationUtils.hasAnnotations(clazz, false, Entity.class);
    }
}
