-->
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.  [ 4 posts ] 
Author Message
 Post subject: DB2 Stored Procedure Report
PostPosted: Wed Apr 27, 2005 6:34 pm 
Newbie

Joined: Wed Apr 13, 2005 7:32 pm
Posts: 11
Gidday,

I've been looking at Hibernate3 for use with Stored Procedures and managed to get it working nicely with SQL Server, however, I'm also interested in using Hibernate3 with DB2 but have found that the DB2Dialect does not support resultsets via stored procedures - org.hibernate.dialect.Dialect#registerResultSetOutParameter.

I'm just wondering if there is any plan for this and when it might be implemented?

Cheers,
Dan.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 10:50 pm 
Newbie

Joined: Wed Apr 13, 2005 7:32 pm
Posts: 11
Well I've found two solutions to my problem:

1) Don't include the callable="true" attribute on the <sql-query /> declaration.

2) Use the SQLServerDialect because DB2 UDB can return resultsets in a similar fashion to SQL Server.

Hope this helps people.

Cheers,
Dan.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 1:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
do they work without setting callable=true ? *weird*

could you add this to the jira since just using sqlserverdialect will break alot of other stuff on db2 so we need to adapt the db2 dialect - thank you.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 3:35 am 
Newbie

Joined: Wed Apr 13, 2005 7:32 pm
Posts: 11
Yeah, a bit wierd.

I have added this to JIRA http://opensource.atlassian.com/projects/hibernate/browse/HHH-411

I may have another bug to do with calling an update procedure. Will post shortly and add to JIRA if needed.

Cheers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.