Skip to content

Instantly share code, notes, and snippets.

@sanity
Created January 28, 2011 21:56
Show Gist options
  • Save sanity/801073 to your computer and use it in GitHub Desktop.
Save sanity/801073 to your computer and use it in GitHub Desktop.
getPairSql = convertStreamToString(RankStuff.class.getResourceAsStream("get_pair.sql"));
final Query getPairQuery = JPA.em().createNativeQuery(getPairSql);
getPairQuery.setParameter("category_id", category.id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment