Criteria criteria = currentSession.createCriteria(Sport.class).
add(Restrictions.eq("name", name)).setMaxResults(1);
return (Sport) criteria.uniqueResult();
} catch (HibernateException e) {
this.logger.logError("error on get Sport by name, msg: " + e.getMessage());
throw new ExceptionDAO("No se pudo obtener la actividad física", e.fillInStackTrace());
}
}