-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate to Handle Ref Cursor
PostPosted: Sat May 30, 2015 2:23 pm 
Newbie

Joined: Fri May 08, 2015 8:32 am
Posts: 3
Is there any way to handle refcursor from stored procedures in Hibernate? I'm facing Oracle Dialect problem.
create or replace package pck_test is


-- Public type declarations
procedure proc_return(in_param number,
out_list1 out sys_refcursor,
out_list2 out sys_refcursor
);

end pck_test;
/
create or replace package body pck_test is

procedure proc_return(in_param number,
out_list1 out sys_refcursor,
out_list2 out sys_refcursor
)
is
begin
open out_list1
for
select 1,2 from dual;

open out_list2
for
select 3,4 from dual;
end ;

end pck_test;


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

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.