ems, portal schema property 일치화

This commit is contained in:
Rinjae
2025-09-30 15:37:46 +09:00
parent d77ddaf3f6
commit b6edca32a9
@@ -40,15 +40,15 @@ public class OrgCodeGenerator implements ValueGenerator<String> {
// private static final long INITIAL_VALUE = 1000000000L;
String schema = System.getProperty("ems.schema", "");
String schema = System.getProperty("eai.tableowner", "");
if (schema.isEmpty()) {
log.error("ems.schema is empty.");
throw new IllegalStateException("System property 'ems.schema' is not set. Please configure 'ems.datasource.schema'.");
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;
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', ?)";
this.SELECT_SQL = "SELECT NEXT_ID FROM " + TABLE_NAME_WITH_SCHEMA + " WHERE TABLE_NAME = 'PTL_ORG' FOR UPDATE";