-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate support for OUT REF CURSOR params
PostPosted: Tue Nov 29, 2005 5:58 pm 
Newbie

Joined: Tue May 10, 2005 2:53 pm
Posts: 2
Location: FL, USA
Is it possible (in Hibernate 3.05 and Oracle 9.2) to call an Oracle PROCEDURE that has some IN and OUT params including an OUT REF CURSOR.

Hibernte docs (and test cases) seem to suggest that only sprocs that follow the {?=proc()} notation will work. In other words Oracle FUNCTIONs that explicitly return a REF_CURSOR.

Looking at the API there's no way to do something like: callableStatement.registerOutParameter(index, OracleTypes.CURSOR);

Is this correct? if so, is there a workaround for this (turning this PROCEDURE into a FUNCTION is not possible as there are more OUT params I'm interested in besided the REF CURSOR).

Thanks,
MV


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 6:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
simple answer: no

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 10:23 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
grap session.getConnection() and do procedure with pure JDBC


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