ProfessionRemote professionRemote = (ProfessionRemote) criteria.uniqueResult();
this.logger.logDebug("get successfully");
return (professionRemote != null ? professionRemote.getRemoteId() : -1);
} catch (HibernateException e) {
this.logger.logError("error on get last remote profession synchronized, msg: " + e.getMessage());
throw new ExceptionDAO("No se pudieron obtener las profesiones", e.fillInStackTrace());
}
}