Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic