• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate hbm file mapping - problem with jcc driver

 
vivek ja
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having a problem with the hibernate mapping file (something.hbm.xml)
I have 1 field defined as a VARCHAR in the database.
I have defined it as a String in the java file, and given type="string" in the hbm file.

There is a field in the database with type SMALLINT. In the hbm file i have type="short" for that field. In my java class, i tried both short and java.lang.Short for that field and nothing works

When i use this driver, it works fine
Driver name: COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource

But when i use this driver, it gives me an error
com.ibm.db2.jcc.DB2ConnectionPoolDataSource

Caused by:
com.ibm.db2.jcc.a.SqlException: Query processing has been terminated due to error on the server.

Can anyone give me a clue as to what to look for that will make it work with that jcc driver?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic