This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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?