Code example for HibernateException

Methods: printStackTrace

0
        if (startSession()) { 
            try { 
                StaticHibernateUtil.commitTransaction(); 
                postHandleTransaction(request, annotation);
            } catch (HibernateException he) {
                he.printStackTrace();
                StaticHibernateUtil.rollbackTransaction(); 
                throw new ApplicationException(he);
            } 
        } else { 
            postHandleTransaction(request, annotation);
        } 
 
        if (closeSession) {
            // StaticHibernateUtil.flushAndCloseSession(); 
            StaticHibernateUtil.closeSession(); 
        } 
    } 
 
    protected boolean isNewBizRequired(HttpServletRequest request) throws ServiceException {