use of com.tomasio.projects.trainning.model.ComplementacaoInstrucao in project trainning by fernandotomasio.
the class HibernateComplementacaoInstrucaoDAO method remove.
@Override
public void remove(Long id) throws DAOException {
Session session = sessionFactory.getCurrentSession();
ComplementacaoInstrucao atividade = (ComplementacaoInstrucao) session.get(ComplementacaoInstrucao.class, id);
try {
session.delete(atividade);
} catch (HibernateException e) {
Logger.getLogger(HibernateComplementacaoInstrucaoDAO.class.getName()).log(Level.SEVERE, null, e);
throw new DAOException("Erro ao remover ComplementacaoInstrucao!");
}
}
Aggregations