-->
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.  [ 2 posts ] 
Author Message
 Post subject: Oracle REF_CURSOR return problem from procedure
PostPosted: Fri May 08, 2015 8:37 am 
Newbie

Joined: Fri May 08, 2015 8:32 am
Posts: 3
Exception in thread "main" java.lang.UnsupportedOperationException: org.hibernate.dialect.Oracle10gDialect does not support resultsets via stored procedures.

When we are calling stored procedure with ref cursor we are getting this error.
StoredProcedureQuery query = em.createStoredProcedureQuery("test_cur1");
query.registerStoredProcedureParameter("test", String.class, ParameterMode.IN);
query.registerStoredProcedureParameter("out_cur", void.class, ParameterMode.REF_CURSOR);
query.setParameter("test", "abcd");
boolean execute = query.execute();
List employees = (List) query.getOutputParameterValue("out_cur");

Thanks


Top
 Profile  
 
 Post subject: Re: Oracle REF_CURSOR return problem from procedure
PostPosted: Sun May 10, 2015 3:49 am 
Newbie

Joined: Fri May 08, 2015 8:32 am
Posts: 3
can any one tell us how to handle this scenario. or is there any other option in JPA or in Hibernate to tackle this issue?

Thanks


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