• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how we can call stored procedure in hibernate?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
can some one explain me how we can call and use result of an stored procedure using hibernate?

thanks
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I am going to forward you off to the hibernate.org website where in the FAQ they have really good stuff for stored procedures.

There are two caveats to stored procedures.

1. You can only have one out parameter,
2. and it must be the first parameter, the out cannot be the second, third or more paramater.

As stored procedures you will basically define a mpaaing of a named-query in you config file. You can also configure your insert, update and deletes to call triggers too.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic