cn.foxtech.common.entity.manager.EntityMySqlComponent Maven / Gradle / Ivy
package cn.foxtech.common.entity.manager;
import cn.foxtech.common.entity.service.mybatis.BaseEntityService;
import lombok.Data;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
/**
* 数据库部件
*/
@Data
@Component
public class EntityMySqlComponent {
private final Map dBService = new HashMap<>();
public BaseEntityService getEntityServiceBySimpleName(String simpleName) {
return dBService.get(simpleName);
}
public BaseEntityService getEntityService(Class clazz) {
return dBService.get(clazz.getSimpleName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy