• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.hibernate.QueryParameterException: could not locate named parameter

 
santosh malreddy
Greenhorn
Posts: 12
Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to execute a stored proc with hibernate named query. I want to pass the oracletypes as the type since I am getting this exception.
org.hibernate.HibernateException: Problem while trying to load or access OracleTypes.CURSOR value.
As a workaround I am trying to use createsqlquery but I think I am doing something wrong in passing the oracle cursor type.
Any thoughts, ideas.?



When using this way I am getting the below exception:
org.hibernate.QueryParameterException: could not locate named parameter
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!