aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to call stored procedure through Hibernate?