com.github.yulichang.toolkit.Asserts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-join-core Show documentation
Show all versions of mybatis-plus-join-core Show documentation
An enhanced toolkit of Mybatis-Plus to simplify development.
package com.github.yulichang.toolkit;
import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
/**
* @author yulichang
* @since 1.4.5
*/
public class Asserts {
public static void hasTable(TableInfo tableInfo, Class> entityClass) {
if (tableInfo == null) {
throw new MybatisPlusException(String.format(
"mapper not find by class <%s> , add mapper and extends BaseMapper or MPJBaseMapper",
entityClass.getSimpleName()));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy