Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting error..  RSS feed

 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when i try to change a query in my hibernate.xml and run it
i get an error
java.lang.IllegalArgumentException: Parameter xyz does not exist as a named parameter in [sql query]
am i supposed to make any changes outside hibernate.xml if
i change the querry.
thanks.
 
Theodore Casser
Ranch Hand
Posts: 1902
Hibernate Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're going to need to change the references to the query (for instance, to add/remove parameters) wherever you referred to it in custom code, but other than that, the question is what else did you change.

Hope that helps.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!