Skip to content

Instantly share code, notes, and snippets.

@namendes
Created April 25, 2016 07:13
Show Gist options
  • Save namendes/2fd57a512413c6832d7524fe5a22de3a to your computer and use it in GitHub Desktop.
Save namendes/2fd57a512413c6832d7524fe5a22de3a to your computer and use it in GitHub Desktop.
beyondCow example
final Query query = getQueryManager(context).createQuery(queryString, Query.SQL);
final NodeIterator iter = query.execute().getNodes();
if (iter.hasNext()) {
 user.populate(iter.nextNode());
} else {
 LOG.error("User {} does not exist, returning object without state.", username);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment