manageService.save(manage);
public ModelAndView addManage(@RequestParam("attach") MultipartFile attach,
Manage manage, HttpServletRequest request,
HttpServletResponse response) throws IOException {
        //查询当天的下一个流水号
         String hql = "SELECT max(t.itemnumber+1) FROM Manage t ";
        String str =  session.createQuery(hql).uniqueResult().toString();
        manageService.save(manage);}情况是插入数据时 hql走数据库里取列itemnumber加一,不过这样写好像不对啊,sessiom 为什么会报错呢