my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes How to call Stored Procedure from Hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to call Stored Procedure from Hibernate?" Watch "How to call Stored Procedure from Hibernate?" New topic
Author

How to call Stored Procedure from Hibernate?

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You call a stored procedure as a named query. This has been part of Hibernate since v2. Check the documentation to find out how.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
afsar khan
Greenhorn

Joined: Jan 12, 2010
Posts: 8
You can called the stored procedure through Named Query by preparing the stored procedure in the respective hbm.xml file inside sql-query tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call Stored Procedure from Hibernate?
 
Similar Threads
Stored Procedure + Hibernate + DB2
Calling stored procedures from hibernate
How to get the starting position of a string using hibernate query.
How to call stored procedure through Hibernate?
Hibernate multi row insert