Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with stored procedure in Hibernate

 
Prabha Suresh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using a simple stored procedure as named query in Hibernate.
When I call
Query query = session.getNamedQuery("nameQuery");
List list = query.list();

I am getting the error "bind value does not exist"

Can any one tell me how to use stored procedure as named query in Hibernate??
My database is Oracle8i.

Thank you..
 
Vilpesh Mistry
Ranch Hand
Posts: 62
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
one friend of mine had long back referred me this URL,
Please check if you find any solution here

http://www.hibernate.org/hib_docs/v3/reference/en/html/querysql.html#querysql-limits-storedprocedures

thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic