Skip to content

Instantly share code, notes, and snippets.

@timoteoponce
Created September 17, 2012 04:13
Show Gist options
  • Save timoteoponce/3735493 to your computer and use it in GitHub Desktop.
Save timoteoponce/3735493 to your computer and use it in GitHub Desktop.
JPA entityManager
User user = (User)entityManager.createQuery( "SELECT t FROM User t WHERE t.name like :param1" ).setParam("param1",parameter).singleResult();
doSomething( user );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment