Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parameters bound incorrectly

 
Gowrishankar Subramanian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a very strange problem of having the parameters interchanged (bound wrongly) which in case would not return any row at all.

Here is the POJO class for my table dlr_xref:

Here, dealerxrefId is a composite key. When I try to write a query something like

the values of xrefFrom and dealerId gets interchanged.
I have a similar query which used another field xrefTo but that query works just fine.

Here's a snip of my hbm file:
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!