-->
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: Problem with calling stored procedure.
PostPosted: Wed Jun 11, 2008 9:21 am 
Newbie

Joined: Wed Jun 11, 2008 9:07 am
Posts: 1
I have problem with calling stored procedure.
My code :

SQLQuery q = hibernateSession
.createSQLQuery("{ ? = call xxx.GetStatistics(":userId :customerId, :groupId, :adminId, :startDate, :endDate) }");

q.setParameter("userId", 17, new IntegerType());
q.setParameter("customerId", null, new IntegerType());
q.setParameter("groupId", null, new IntegerType());
q.setParameter("adminId", null, new IntegerType());
q.setParameter("startDate", new Timestamp(new Date().getTime()), new TimestampType());
q.setParameter("endDate", new Timestamp(new Date().getTime()), new TimestampType());

List<?> l = q.list();

I get this exception
ERROR JDBCExceptionReporter:78 - Missing IN or OUT parameter at index:: 7.

How can I set out parameter?


Top
 Profile  
 
 Post subject: Re: Problem with calling stored procedure.
PostPosted: Tue Feb 16, 2010 4:35 am 
Newbie

Joined: Tue Feb 16, 2010 4:28 am
Posts: 1
with Hibernate 3.3.2 GA
have same problems, please help
I use oracle function and
my function return ref cursor


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.