-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can I use Oracle Stored Procedure with Hibernate?
PostPosted: Tue Jan 06, 2004 12:32 am 
Newbie

Joined: Mon Dec 22, 2003 4:23 am
Posts: 11
Is there any sample code to use oralce s.p on top of hibernate code ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2004 1:16 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
The only way currently to call a stored procedure from hibernate is to indirectly use Session.connection(). This will return a standard JDBC connection which you can use to call the sp. You need to then use one of the prepareCall(...) methods. See the jdbc API:
[url]
http://java.sun.com/j2se/1.4.2/docs/api ... ction.html
[/url][/i]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2004 1:24 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Also see a previously answered post - This illustrates a trivial example

http://forum.hibernate.org/viewtopic.ph ... highlight=

Cheers

Justin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2004 6:25 am 
Beginner
Beginner

Joined: Thu Dec 11, 2003 9:54 am
Posts: 25
Well this is not a trivial example ;) a bit more advanced ;)))

Author of this topic: If you need a help with this CURSOR's stuff - just let me know. :)

-awt

drj wrote:
Also see a previously answered post - This illustrates a trivial example

http://forum.hibernate.org/viewtopic.ph ... highlight=

Cheers

Justin


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