Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
15721c28d7
fix(deps): update hibernate core to v7 2025-09-29 13:04:02 +00:00
Kavin
c5921f6b70
Merge pull request #817 from gmemstr/patch-1
Allow for valid hibernate environment variables
2025-09-28 01:50:37 +05:30
Gabriel Simmer
946b3762a9
Hibernate environment variables double underscore to period 2025-09-27 11:59:20 +01:00
Gabriel Simmer
e36bbd0445
Allow for valid hibernate environment variables
*nix systems can't have periods in their environment variable names, so we instead look for `HIBERNATE` prefixes, then lowercase and translate underscores to periods. This will allow for better compatibility with *nix systems when configuring likely sensitive hibernate values.
2025-09-27 11:58:52 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ dependencies {
implementation 'io.activej:activej-launchers-http:5.5'
implementation 'org.hsqldb:hsqldb:2.7.4'
implementation 'org.postgresql:postgresql:42.7.7'
implementation 'org.hibernate:hibernate-core:6.4.1.Final'
implementation 'org.hibernate:hibernate-hikaricp:6.4.1.Final'
implementation 'org.hibernate:hibernate-core:7.1.2.Final'
implementation 'org.hibernate:hibernate-hikaricp:7.1.2.Final'
implementation 'org.liquibase:liquibase-core:4.33.0'
implementation('org.liquibase.ext:liquibase-yugabytedb:4.33.0') { exclude group: 'org.liquibase' }
implementation 'com.zaxxer:HikariCP:6.3.2'

View File

@ -166,8 +166,8 @@ public class Constants {
S3_CLIENT = null;
}
System.getenv().forEach((key, value) -> {
if (key.startsWith("hibernate"))
hibernateProperties.put(key, value);
if (key.startsWith("HIBERNATE"))
hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
});
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");