if (orderBy != null)
sb.append(" Order By ").append(orderBy);
try {
Query query = session.createQuery(sb.toString());
query.setLockMode("this", lockMode);
return query.iterate();
}
catch (Exception e) {
_logger.error("iteratePuntajeByQuery(PersistentSession session, String condition, String orderBy)", e);
throw new PersistentException(e);
}