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

Parameters bound incorrectly  RSS feed

 
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
Boost this thread!