资源相关
This commit is contained in:
@ -61,7 +61,6 @@ public class DatabaseManager {
|
||||
log.info("{}数据库已初始化、无需重复执行", dbType.name());
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
loadConfig(dbType);
|
||||
if (!validateConfig(dbType)) {
|
||||
@ -189,6 +188,10 @@ public class DatabaseManager {
|
||||
}
|
||||
}
|
||||
|
||||
public static void createTablesForEntities(DatabaseType dbType, Class entityClass, Connection connection) throws SQLException {
|
||||
createTableIfNotExists(connection, dbType, entityClass);
|
||||
}
|
||||
|
||||
private static void createTableIfNotExists(Connection connection, DatabaseType dbType, Class<?> entityClass) throws SQLException {
|
||||
String tableName = getUnderlineName(entityClass.getSimpleName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user