mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-12 06:04:49 +00:00
HHH-16222 Improve warning triggered when the PostgreSQL JDBC driver is not accessible
This commit is contained in:
parent
b328b1a3fb
commit
ce9501e0e5
@ -52,7 +52,7 @@ public abstract class PostgreSQLPGObjectJdbcType implements JdbcType {
|
||||
valueSetter = ReflectHelper.setterMethodOrNull( pgObjectClass, "value", String.class );
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.warn( "PostgreSQL JDBC driver classes are inaccessible and thus, certain DDL types like JSONB, JSON, GEOMETRY can not be used!", e );
|
||||
LOG.postgreSQLJdbcDriverNotAccessible();
|
||||
}
|
||||
PG_OBJECT_CONSTRUCTOR = constructor;
|
||||
TYPE_SETTER = typeSetter;
|
||||
|
@ -1819,4 +1819,9 @@ void attemptToAssociateProxyWithTwoOpenSessions(
|
||||
id = 513)
|
||||
void unableToGenerateReflectionOptimizer(String className, @Cause Throwable cause);
|
||||
|
||||
@LogMessage(level = WARN)
|
||||
@Message(value = "PostgreSQL JDBC driver classes are inaccessible and thus, certain DDL types like JSONB, JSON, GEOMETRY can not be used.",
|
||||
id = 514)
|
||||
void postgreSQLJdbcDriverNotAccessible();
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user