This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes How to call stored procedure through Hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to call stored procedure through Hibernate?" Watch "How to call stored procedure through Hibernate?" New topic
Author

How to call stored procedure through Hibernate?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
can we call a stored procedure through hibernate from java? How to call.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yes you can, assuming you are using Hibernate3. You can map a Stored Procedure as a named query.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

As Paul says, you can certainly do this.

Have a look here for further details.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call stored procedure through Hibernate?