wood burning stoves 2.0*
The moose likes Spring and the fly likes how can i call stored procedure from hibernatetemplate class using spring 2.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "how can i call stored procedure from hibernatetemplate class using spring 2.5" Watch "how can i call stored procedure from hibernatetemplate class using spring 2.5" New topic
Author

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

srinivas chintha
Greenhorn

Joined: Oct 08, 2012
Posts: 8
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.

Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

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.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7



Use HibernateTemplates findByNamedQuery to execute it. I would not use HibernateTemplate unless you are using a really old version of Hibernate


[How To Ask Questions][Read before you PM me]
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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

Joined: Oct 08, 2012
Posts: 8
Hello i need example without annotations...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i call stored procedure from hibernatetemplate class using spring 2.5
 
Similar Threads
Dependency Injection
Issue when migrating from Spring 2.5 to Spring 2.5.6 SEC 02 version
Calling Oracle Stored Procedure which has parameter as CURSOR
Hibernate session management
Bind Variable Doesnot exists