• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hibernate hbm file mapping - problem with jcc driver

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic