-->
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: How to register OUT parameter when invoking stored procedure
PostPosted: Tue Sep 27, 2005 6:28 am 
Newbie

Joined: Tue Sep 27, 2005 5:48 am
Posts: 5
Hibernate version: 3.0

Hi,

I'm having a stored procedure which is having both IN and OUT parameters. I'm getting the connection from hibernate session and creating CallableStatement for the stored procedure.

I'm able to set IN paramters but unable to register OUT parametes.
Ex: stmt.registerOutParameter(returnMessage,4);

It is throwing "Unsupported Feature"
Is this not supported by Hibernate?
But we are actually getting the connection and doing it in JDBC style.

If any one is successful in doing this, can you please reply the same how it was done.


Thanks in Advance,
Zombie

_________________
Catch me if you Can


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 6:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you are using the connection directly you are not using hibernate, but your underlying driver.

As you dont show the stacktrace I can't tell what is actually going on.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 10:55 am 
Newbie

Joined: Tue Sep 27, 2005 5:48 am
Posts: 5
Thanks Max.
It was a sql error but not hibernate.
Also it might not a be a version problem.
I just had to change the way I register my out paametes as follows.

callStatement.registerOutParameter(4,Types.VARCHAR);

Thanks,
Zombie

_________________
Catch me if you Can


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.