List<PathologyPatient> list = currentSession.createCriteria(PathologyPatient.class).add(Restrictions.and(Restrictions.eq("patient", patient), Restrictions.eq("pathology", pathology))).list();
this.logger.logDebug("exist pathology by patient successfully");
return !list.isEmpty();
} catch (HibernateException e) {
this.logger.logError("error on exist pathology by patient, msg: " + e.getMessage());
throw new ExceptionDAO("No se verificar si ya existe la patología del paciente", e.fillInStackTrace());
}
}