adm/app 계정 관련 하이버네이트 대응

This commit is contained in:
Rinjae
2025-09-11 18:46:21 +09:00
parent 45280a967a
commit ff99e7caad
2 changed files with 8 additions and 4 deletions
@@ -53,10 +53,6 @@ public class ConfigurableMultiTenantConnectionProvider implements MultiTenantCon
}
public Connection changeSchema(Connection connection, String tenantIdentifier) throws SQLException {
// connection.setSchema() 를 이용하여 schema를 설정 하려 했으나 postgresql 에서는 대문자로 넣으면 에러가
// 발생 한다. 에러가 발생 하지 않게 하려면 applicationContext-datasource.xml 에서 스키마명을 소문자로 변경
// 한다.
// 일단 schema 설정을 하지 않고 사용
String schema = DataSourceTypeManager.getDataSourceType(tenantIdentifier).getSchema();
connection.setSchema(schema);
log.debug("change schema : {} connection : {}", schema, connection);