스키마 관련 오류 수정

This commit is contained in:
Rinjae
2025-10-13 14:36:00 +09:00
parent fa903734b6
commit 1d6b5f6e7e
@@ -42,12 +42,12 @@ public class OrgCodeGenerator implements ValueGenerator<String> {
String schema = System.getProperty("eai.tableowner", "");
if (schema.isEmpty()) {
if (schema == null || schema.isEmpty()) {
log.error("ems.schema is empty.");
throw new IllegalStateException("System property 'eai.tableowner' is not set. Please configure 'eai.tableowner' or 'ems.datasource.schema'(developer portal).");
}
String TABLE_NAME_WITH_SCHEMA = System.getProperty("ems.schema", "") + "." + TABLE_NAME;
String TABLE_NAME_WITH_SCHEMA = schema + "." + TABLE_NAME;
this.CHECK_EXISTS_SQL = "SELECT COUNT(*) FROM " + TABLE_NAME_WITH_SCHEMA + " WHERE TABLE_NAME = 'PTL_ORG'";
this.INSERT_SQL = "INSERT INTO " + TABLE_NAME_WITH_SCHEMA + " (TABLE_NAME, NEXT_ID) VALUES ('PTL_ORG', ?)";