public void deletarLista(List<T> ts) throws org.hibernate.exception.ConstraintViolationException, ValidacaoException {
        try {
            transacao = session.beginTransaction();
            session.clear();
            session.flush();
            for (T t : ts) {
                session.delete(t);
            }
            transacao.commit();
        } catch (org.hibernate.exception.ConstraintViolationException ex) {
            transacao.rollback();
            throw new ConstraintViolationException(ex.getMessage(), ex.getSQLException(), ex.getConstraintName());
        } catch (HibernateException e) {
            transacao.rollback();
            throw new ValidacaoException(e.getMessage());
        }

    }