sql >> Base de Datos >  >> RDS >> PostgreSQL

hibernar con c3p0:createClob() aún no está implementado

En caso de que alguien encuentre este hilo en busca del error equivalente de postgresql:

java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.

aplicación.propiedades:

# disable driver's feature detection
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false

# without detection you have to set the dialect by hand
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect

Por cierto:Spring Boot 2.0.0.RELEASE usa una versión de controlador postgresql rota, tuve que especificar 42.2.0 para que el controlador se cargue:

Caused by: java.lang.RuntimeException: Failed to load driver class org.postgresql.Driver in either of HikariConfig class loader or Thread context classloader

ACTUALIZACIÓN 2018-03-01:

Según este problema, el Stacktrace se considera una advertencia y se puede ignorar

https://github.com/spring-projects/spring-boot/issues/12007#issuecomment-369388646

ACTUALIZACIÓN 2018-03-13:

Ahora hay un informe de error oficial:https://hibernate.atlassian.net/browse/HHH-12368