This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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.