-->
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: Stored procedure with Oracle custom objects
PostPosted: Mon Jun 24, 2013 3:31 am 
Beginner
Beginner

Joined: Wed Jan 07, 2009 7:07 pm
Posts: 26
Hi,
I am trying to call a stored procedure written in Oracle whose IN and OUT parameter is Oracle custom objects. I am trying this using named query.
I have created my custom OUT param by extending from CustomType and IN param by extending from UserType
I am setting the IN param as follows :
Code:
query.setParameter("param", value,Hibernate.custom(CustomType.class));


Now how do I tell hibernate that the out param is also a custom User Type for OUT param. I have defined it using @TypeDef but how to attached it with named query ?

Thanks for your help


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.