From 1d6b5f6e7e62e4117d92daf361335c604d27af01 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Mon, 13 Oct 2025 14:36:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=82=A4=EB=A7=88=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apim/portal/portalorg/entity/OrgCodeGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 067c287..526cd11 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 @@ -42,12 +42,12 @@ public class OrgCodeGenerator implements ValueGenerator { 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', ?)";