-->
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: How to call Oracle function from Hibernate3
PostPosted: Mon Jul 08, 2013 1:48 am 
Newbie

Joined: Mon Jul 08, 2013 1:37 am
Posts: 1
I have to call database function whose signature is as below:

SF_GET_USER_FROM_STRATEGY(p_strAccountId IN VARCHAR2,p_strUserId IN VARCHAR2 ) RETURN VARCHAR2

I am using hibernate with annotations. Please suggest me a standard way to call oracle functions from hibernate.


Top
 Profile  
 
 Post subject: Re: How to call Oracle function from Hibernate3
PostPosted: Sat Jul 27, 2013 2:21 am 
Newbie

Joined: Sat Jul 27, 2013 1:47 am
Posts: 5
Try using @Formula. That should allow us to add sql select clause.

I know for sure that oracle built-in functions could be used. Hopefully, user defined functions also should work, as it is a sql clause.

Thanks
Sathish Kannan


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.