Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call Stored Procedure from Hibernate?

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You call a stored procedure as a named query. This has been part of Hibernate since v2. Check the documentation to find out how.
 
afsar khan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can called the stored procedure through Named Query by preparing the stored procedure in the respective hbm.xml file inside sql-query tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic