-->
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: Return SP cursor using Hibernate
PostPosted: Fri Sep 02, 2005 7:42 pm 
Newbie

Joined: Fri Sep 02, 2005 7:34 pm
Posts: 1
Hi,

I need to implement a Stored Procedure in Hibernate, my code using connection class is this:

cs = conn.prepareCall("{call PROCEDURE (?,null,?,?,?)}");
cs.setString(1,custcode);
cs.registerOutParameter(2, Types.NUMERIC);
cs.registerOutParameter(3, OracleTypes.CURSOR);
cs.registerOutParameter(4, OracleTypes.CURSOR);

I've found some examples where return specific values, but I don't know how to return a Cursor Type, Is it possible with Hibernate and if it's true how to, or this is not possible to implement and I need to use connection class? I hope your help.

Thanks in advance,

Fernangps


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 8:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Get the connection from the hibernate session and use JDBC (as you have shown).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 9:51 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
see http://www.oracle.com/technology/sample ... index.html


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.