java.sql.SQLFeatureNotSupportedException in LobCreatorBuilderImpl

Description

Application throws exception java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented during hibernation initialization.

This exception not interrupting application work but it very annoying.

As I see hibernate trying to guess is driver support such function or not.

And this driver say that it not supporting this by throwing SQLFeatureNotSupportedException exception. And this is correct answer

I think it will be good to teach hibernate to handle such answer from driver.

In attach Spring Boot Application that illustrate this situation.
Need to change application.properties befor compile and run

spring.datasource.url = jdbcostgresql://localhost:5434/<database>
spring.datasource.username=username
spring.datasource.password=secret

Application ends with NPE. This sample is used as test case for HHH-12332

Environment

Postgresql JDBC Driver 42.1.4

Status

Assignee

Szczepan Kuźniarz

Reporter

Anton Mityagin

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.14
5.1.12

Priority

Trivial
Configure