• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

how can i call stored procedure from hibernatetemplate class using spring 2.5

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one please tell me how to call stored procedure from HibernateTemplate class using spring 2.5???

please provide sample code snippet also..i need example without annotations.

 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Srinivas!

I've moved your question to the Spring forum, as I believe you'll get better and faster response here. Choosing the right forum will probably help you get a response faster, as described in CarefullyChooseOneForum.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Use HibernateTemplates findByNamedQuery to execute it. I would not use HibernateTemplate unless you are using a really old version of Hibernate
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
srinivas chintha,

Please post a reply rather than editing your original post. There are few reasons for this:

1. People may not notice you have edited your original post and not revisit the topic. It was just dumb luck that I noticed it myself.
2. It keeps the threads orderly. If people have to go back and forth through the replies to look for changes it makes it hard to follow and people are going to move on. Posting replies for new information keeps the thread moving in a sequential fashion.
3. Editing your original post potentially makes the replies look stupid. In this case you added 'i need example without annotations. ' my post that gives you an example with annotations now looks out of place.
 
srinivas chintha
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello i need example without annotations...
 
Beauty is in the eye of the tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic