hibernate 调用存储过程

 
this.pnumberManager.getHibernateTemplate().execute(
            new HibernateCallback() ...{
               public Object doInHibernate(Session session)
                        throws HibernateException, SQLException ...{
                   CallableStatement cs = session
                           .connection()
                           .prepareCall("{call modifyapppnumber_remain(?)}");
                   cs.setString(1, foundationid);
                   cs.execute();
                   return null;
               }
           });

你可能感兴趣的:(java,Hibernate)