This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
List list =session.getNamedQuery("prash_test").setParameter("USERID","1").list();
Query: I am passing a parameter "userid" when I call the procedure. I use this input parameter to form the "where" clause in the stored procedure query. I am passing userid as "1" from java, but the result I am getting is "select * from contact" => where clause is being ignored.