Hibernate support for JDBC specification 4.3?

805 Views Asked by At

In the docs for Hibernate ORM 5.4 it states that the System Requirements require at least Java 1.8 and JDBC 4.2.

The same can be found for the docs for version 6.0.

Hibernate 5.2 and later versions require at least Java 1.8 and JDBC 4.2.

So is the JDBC 4.3 specification (proposed changes) supported by Hibernate ORM 5.4? Does it matter? I assume that any unsupported method call will just throw a SQLFeatureNotSupportedException.

I just can't find anything that explicitly states that JDBC 4.3 is or is not supported and need that cleared up.

1

There are 1 best solutions below

0
On

Any JDBC 4.3 driver will also be compliant with JDBC 4.2 (as the JDBC 4.3 specification includes everything from JDBC 4.2). So, if a library requires at least JDBC 4.2, then it will also work with a JDBC 4.3 driver.

This does assume - of course - that the library itself is able to run on Java 9 (which introduced JDBC 4.3) or higher, but given Hibernate is tested on - at least - Java 8 and Java 11, that would be the case.

As far as I'm aware, Hibernate does not use any features introduced in JDBC 4.3.