|                        TableTest test=list.get(i);                          System.out.println("id="+test.getId()+"||name:"+test.getName());                      }                 }               }catch(Exception e){e.printStackTrace();}            finally{                 if(session!=null){                      session.close();                 }            }           }       /**         * 此种方法是jdbc 的方法          * 优点:不用在在配置文件中进行配置         * 缺点:无法返回对象          * @throws SQLException          */        public void queryOther() throws SQLException{            Session session=null;            Connection conn=null;            PreparedStatement pst=null;            ResultSet rs=null;            try{                 session=HibernateSessionFactory.getSession();                   conn=session.connection();                   pst=conn.prepareCall("{call queryProV(?)}");                 pst.setInt(1, 3);                   rs=pst.executeQuery();                 while(rs.next()){    |