public StandardValue getStandardValueByParamType(StandardParams paramType) throws ExceptionDAO {
try {
this.logger.logDebug("getting standard value by paramType, " + paramType);
Session currentSession = FacadeDB.getInstance().getCurrentSession();
Criteria criteria = currentSession.createCriteria(StandardValue.class).add(Restrictions.eq("param", paramType)).setMaxResults(1);
StandardValue standardValue = (StandardValue) criteria.uniqueResult();
this.logger.logDebug("getting standard value successfully");
return standardValue;
} catch (HibernateException e) {
this.logger.logError("error on get standard value by paramType, msg: " + e.getMessage());
throw new ExceptionDAO("No se pudieron obtener los valores por defecto", e.fillInStackTrace());