public int IsStore()throws Exception { session=sessionFactory.openSession(); Transaction tx=session.beginTransaction(); Query query=session.getNamedQuery("com.hiber.dbbean.TblEmpLogin.sp_emp"); System.out.println("The Query is"+query); query.setParameter(0,enam); query.setParameter(1,epass); //query.setString(0,enam); //query.setString(1, epass); System.out.println("The Value of 1st is**********"+ query.setParameter(0,enam)); System.out.println("The Value of 1st is*********"+ epass); tx.commit(); session.close();
i got the error from this file ? System.out.println("UPdated Successfully"); i=1; return i; } }
|