use of com.tomasio.projects.trainning.model.CertificadoConclusao in project trainning by fernandotomasio.
the class HibernateCertificadoConclusaoDAO method remove.
@Override
public void remove(Long certificadoConclusaoId) throws DAOException {
Session session = sessionFactory.getCurrentSession();
CertificadoConclusao certificadoConclusao = (CertificadoConclusao) session.get(CertificadoConclusao.class, certificadoConclusaoId);
try {
session.delete(certificadoConclusao);
} catch (HibernateException e) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, e);
throw new DAOException(MessageHelper.getMessage("certificadoConclusao.remove.error"));
}
}
Aggregations