-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Problem with DB2 database
PostPosted: Wed May 19, 2004 1:48 pm 
Beginner
Beginner

Joined: Thu Feb 05, 2004 9:09 am
Posts: 27
I just wanna know why DB2 database JDBC2 work only Hibernate 2.1.x, because in my work we can


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 1:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
What exactly do you mean?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 3:22 pm 
Beginner
Beginner

Joined: Thu Feb 05, 2004 9:09 am
Posts: 27
I work with Hibernate 2.1.3 and I use DB2 JDBC1 so happend this error:

java.lang.AbstractMethodError: COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z

When change DB2 JDBC1 to DB2 JDBC2 does everything ok.

Why?

ps. I use this property :

<property name="jdbc.use_scrollable_resultset">true</property>


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 20, 2004 6:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Hibernate is pretty depenent on a JDBC2 conformant driver. In this case, Hibernate checks if the driver supports scrollable results in SettingsFactory. You could probably try to hack the source to get that out, you can submit a patch if you want.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 4:38 am 
Newbie

Joined: Mon Dec 06, 2004 4:52 am
Posts: 5
Using the changes to Hibernate 2.1.6s SettingFactory.java
as described here:
http://opensource.atlassian.com/project ... se/HB-1222
you can use a JDBC-compatible driver with a version lower than 2.0.
I tried it with version 1.2 and the code change in the SettingsFactory and everything worked.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.