Hello
I am facing some weird issues while using hibernate with Tomcat and DB2. We are developing an application that used Hibernate 3.5.6 and now is upgraded to 4.3.8. We are using almost everywhere the default setup, plain hibernate, with no custom queries or complex entities. Just plain JPA anotations and only few tables. The problem that we face is that we get an error while connecting to DB2 9.7/9.8 which is totally unreasonable. We rely on jdbc connection on Tomcat resources to detect the dialect and this works for other DB vendors. The error code that we get is DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null, DRIVER=4.16.53. Tomcat 8 with Java 7 is the most interesting env information for our setup.
The error from DB2 seems to be related to the size of a column not being acceptable. Hibernate seems to produce queries that do not comply with the expected column size from DB2. Any ideas why DB2 fails with that error code when we try to validate or update the schema through hibernate?
Thanks in advance
|