session=sessionfactory.openSession();tran=session.beginTransaction();//Usersuser=(Users)session.get(Users.class,1001);