use of com.tomasio.projects.trainning.model.Conceituacao in project trainning by fernandotomasio.
the class HibernateConceituacaoDAO method findAll.
@Override
public List<Conceituacao> findAll(Long pudId) throws DAOException {
Session session = sessionFactory.getCurrentSession();
try {
Criteria criteria = session.createCriteria(Conceituacao.class);
criteria.add(Restrictions.eq("curriculoMinimo.id", pudId));
@SuppressWarnings("unchecked") List<Conceituacao> conceituacoes = criteria.list();
return conceituacoes;
} catch (HibernateException e) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, e);
throw new DAOException(MessageHelper.getMessage("conceituacoes.find.list.error"));
}
}
Aggregations