hi all, I am facin issue with passing parameter to query in xml file.
This is how i am calling the named query from DAO. Query query = getSession().getNamedQuery("Anamed query"); query.setString("Id",id); query.setString("dt",date);
The query is not executed as both the parameters are passed null. But when i hardcode the parameters in query.setString the query works fine.
Note: i able to sucessfully print the values just before the call to named query is made.
Any help in this regard will be highly appreciated.
Thanks
|