This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!