Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Oracle Procedure call in Hibernate  RSS feed

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to call the Oracle procedure using java spring and Hibernate. Could you please provide the sample code, for calling the procedure using Hibernate.

Regards,
Paras.
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://docs.jboss.org/hibernate/stable/core/reference/en/html/querysql.html#sp_query

for xml and you can use "callable" in NamedQueries with Annotations.

http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#entity-hibspec-query

Big thing is to note the restrictions, you can only have one out parameter and it must be a ref cursor.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!