I have a Struts-Hibernate application which is using Oracle 10g for database persistence. While running the application, sometimes at the time of execute SQL queries, I am getting an exception like:
org.hibernate.exception.GenericJDBCException: could not execute query
I checked through google and found that it may occur due to Hibernate and Oracle (database) version mismatch.
Below are the links, but could not found proper solution: Hibernate 3.3.0 compatibility with Oracle 12c
Version Mismatch between Hiberate and Database
I want to know, Is there any compatibility matrix for these two, so that we can properly understand which version we need to use:
My hibernate version is: 4.3.11 final
My oracle version is : 10G
below is the Maven dependency:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>6.0.0.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.11.Final</version>
</dependency>
in the hibernate.cfg.xml, the Dialect is mentioned as:
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
Any one please suggest me the exact version matches for Hibernate & Oracle.
OR, if there is any other solution to resolve this GenericJDBCException, please suggest that also.