-->
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: Hibernate and Stored procedure
PostPosted: Mon Oct 18, 2004 5:20 pm 
Newbie

Joined: Mon Sep 27, 2004 6:52 pm
Posts: 6
Location: US
Can anyone pls answer the following questions:
Is Hibernate useful for stored oracle procedures and functions?
Also, how will ORM come into picture if it is so?


Top
 Profile  
 
 Post subject: Re: Hibernate and Stored procedure
PostPosted: Mon Oct 18, 2004 6:14 pm 
Newbie

Joined: Sat Aug 30, 2003 12:37 pm
Posts: 16
sanjib wrote:
Can anyone pls answer the following questions:
Is Hibernate useful for stored oracle procedures and functions?
Also, how will ORM come into picture if it is so?


Please be more specifc. If you want to call stored procedures from Hibernate, you can do so by accessing JDBC connection from the session object using Session.connection().


Top
 Profile  
 
 Post subject: Re: Hibernate and Stored procedure
PostPosted: Mon Oct 18, 2004 6:23 pm 
Newbie

Joined: Mon Sep 27, 2004 6:52 pm
Posts: 6
Location: US
I was trying to evaluate Hibernate against stored procedures/functions. All my J2EE applications use calls to Oracle stored procedure/functions. In such a scenario, how should I use Hibernate to obtain the beauty of ORM framework?
If an oracle function returns a resultset to me, then can i have it in objects?
Also, if you see this article
http://www.hibernate.org/187.html
some nice things were said in the plan. So, i would like to know if they were implemented and a link to any document where i can use the functions in hbm mappings.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 3:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
This is all done in Hibernate3 (read: not available in Hibernate2). Check out the tests for this functionality (in the test/org/hibernate/test/sql dist dir). The tests simply use native sql, but using stored procedures is as simple as specifying the callable string and setting the callable attribute to true.


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.