EMSADM DDL identity to sequence 대응 완료

This commit is contained in:
Rinjae
2025-11-14 14:58:37 +09:00
parent 535936228b
commit 65e0777bb5
3 changed files with 12 additions and 16 deletions
@@ -1,27 +1,16 @@
package com.eactive.apim.portal.config;
import com.eactive.eai.data.jpa.BaseRepositoryImpl;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import javax.annotation.PostConstruct;
import javax.naming.NamingException;
import javax.sql.DataSource;
import com.eactive.eai.rms.data.PortalSchemaProviderHolder;
import com.zaxxer.hikari.HikariDataSource;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jndi.JndiObjectFactoryBean;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
@@ -1,13 +1,20 @@
package com.eactive.apim.portal.config;
import com.eactive.eai.rms.data.PortalSchemaProviderHolder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@EqualsAndHashCode(callSuper = true)
@Component
@ConfigurationProperties(prefix = "ems.datasource")
@Data
public class EmsDatasourceProperty extends DatasourceProperty {
@PostConstruct
public void init() {
PortalSchemaProviderHolder.setProvider(this::getSchema);
}
}
+4 -4
View File
@@ -19,8 +19,8 @@ spring:
ems:
datasource:
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
driver-class-name: oracle.jdbc.OracleDriver
username: EMSAPP
password: EMSAPP123!
@@ -28,8 +28,8 @@ ems:
gateway:
datasource:
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
driver-class-name: oracle.jdbc.OracleDriver
username: AGWAPP
password: AGWAPP123!