Hi,
I have a class XX(maps to table X), which has variables amount of type big_decimal and date of type date. When I am trying to update the class XX using following query
Code:
update XX y set y.amount = y.amount +:someAmount
where y.date >= :someDate
where someAmount is user passed amount which is of type big decimal.
I am getting error saying all named parameters are not set [someAmount]If I convert the someAmount variable to string and bind that, then the query is successfully executed.
Could you please suggest where am I going wrong or Is it a hibernate problem that it can't bind big decimal values
I hope I provided all the required details, If not please let me know
Any sort of help is appreciated.
Thanks,
Shruthi