From b6edca32a97d009b417afcd59610573c223977f3 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Tue, 30 Sep 2025 15:37:46 +0900 Subject: [PATCH] =?UTF-8?q?ems,=20portal=20schema=20property=20=EC=9D=BC?= =?UTF-8?q?=EC=B9=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apim/portal/portalorg/entity/OrgCodeGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/eactive/apim/portal/portalorg/entity/OrgCodeGenerator.java b/src/main/java/com/eactive/apim/portal/portalorg/entity/OrgCodeGenerator.java index 9204f31..067c287 100644 --- a/src/main/java/com/eactive/apim/portal/portalorg/entity/OrgCodeGenerator.java +++ b/src/main/java/com/eactive/apim/portal/portalorg/entity/OrgCodeGenerator.java @@ -40,15 +40,15 @@ public class OrgCodeGenerator implements ValueGenerator { // 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";