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