Skip to content

Instantly share code, notes, and snippets.

@marti1125
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save marti1125/7f60d305ff5bece23231 to your computer and use it in GitHub Desktop.

Select an option

Save marti1125/7f60d305ff5bece23231 to your computer and use it in GitHub Desktop.
create native query in play framework
String queryUpdateClases = "select MAX(fecha) from Reunion where clase_id = 3189499 and fecha > '2014-09-04'";
Query ejecutarUpdateClases = JPA.em().createNativeQuery(queryUpdateClases);
ejecutarUpdateClases.getResultList();
System.out.println("fechaa " + ejecutarUpdateClases.getResultList().get(0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment