Search code examples
databasehibernatejdbcdb2websphere

JDBC version in Hibernate 4


Is there a way, how to use Hibernate 4 (Hibernate ORM 4.2.21.Final) together with JDBC 3.0 driver? I made version upgrade from Hibernate 3 to 4, but then I realised, that there are some problems with unsupported methods (Feature is not implemented: PreparedStatement.setBinaryStream), because Hibernate 4 works with JDBC 4.0. Do I really have to move back to Hibernate 3 or can I just set some property into config to use JDBC 3.0? I am limited by the JDBC 3.0 driver running on Websphere 7 (JRE 6).


Solution

  • There isn't any other way apart from upgrading to JDBC 4.0. I myself have had similar problem when I upgraded from Hibernate from v3.0 to v4.2.

    I don't know from where you get your information but as far as WebSphere 7.0 is concern, it does support JDBC 4.0 Specifications. You can read about it from here.