non-transactional

this.getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(queryString)报错No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here,因为没有配置事务


        
        
    
    
      
          
       
    


你可能感兴趣的:(hibernate)